alias - creates command shortcut --including cmdLineParams--
apt-get (apt) - install package
*** Update OS:
sudo apt-get update
sudo apt-get upgrade
- install, remove, update, upgrade, autoclean, autoremove
awk - string manipulation from cmd-line (text processor)
brightnessctl - control backlighting brightness (another possibility is brightness-udev
cat - list contents of file
cat /proc/cpuinfo - get info about board and CPU
chmod - change file permissions
Order UGO {(U)ser / (G)roup / (O)ther; (R)ead - 4, (W)rite - 2, and E(x)ecute - 1
E.g., sudo chmod +743 <file_name>, where + means add permission 7 is R/W/X for User, 4 is R for Group, and 3 is W/X permissions for all others
chown - change file owner or group
df -h - file system disk space usage (-h human readable values MB, GB, etc.)
du - disc space usage (
du -hxd1 / print space usage for root level folders w/ size)
dmesg - print or control kernel ring buffer
fdisk - manipulate disk partition table (be careful)
sudo fdisk -l ... lists information about the various file-systems
finger - user info lookup program
finger without cmd-line args, will list all users logged into computer
free -h - get amount of memory in human readable form
gdb - debugger
grep - print lines that match pattern specified
groups <options> <user_name> - list the groups a user belongs to
hexyl - another hex/ascii dump program
htop - displays running processes
ifconfig - lists network connection info
kill - send messages to processes (sudo kill -9 <process_number>)
ls - list directory contents
lsblk - list the block devices
lsof - list open files
lsusb - list USB devices (lsusb -tv verbose-tree form)
man - manual pages ... help
nc - arbitrary TCP/UDP connections and listens (well, that is what the man-page says)
netstat - print network connection, routing tables, I/F stats, masquerade connections and multicast memberships
nano - simple text editor; command-line
nmap - network exploration tool and security/port scanner (highly configurable)
passwd - change user password
ping - send ECHO_REQUEST to network hosts
-s<blk>, where blk is packet size
-c<#>, where # is number of pings before terminating
ps - list processes currently running
pwd - print working directory
od - hexadecimal dump from file (
od -tx2 select hexadecimal 2-byte units)
raspi-config - cmd-line configuration tool for Rasbian OS
reboot now - restarts device
rfkill - tool for enabling and disabling RF devices
rsync - remote (and local) file copy tool. Used for copying and then removing the file (if copy successful) on a remote host
rsync [options] [src] [dst] ... [src] and [dst] format: <user_id>@<remoteHost>:<path/file_name>
For moving from [src] to [dst], use the --remove-source-files cmd-line option.
Show progress, use --progress cmd-line option.
scp - secure copy
scp <source_file> <destination_file>
-
source_file = [user@]SRC_HOST:file1;
-
destination_file = [user@]DST_HOST:file2
screen -
screen manager with VT100/ANSI terminal emulation
^a (ctrl-a) >> quit
^a + k >> kill screen
sed - stream editor
setserial - info about serial port specified << -G switch mentioned in notes w/o description >>
shutdown now - shutdown system immediately.
split - splits text file into pieces as defined by the operator
ssh - secure shell (terminal)
ssh-keygen - generate private/public key file
ssh-copy-id - copies public key to remote host
- Go to Secure Shell for more information on generating keys for auto-login feature.
stat - lists file or file system information
stty - change and print terminal settings
sudo - Super User do ... override with *root* access
tr - translates or deletes character
type <command> - lists location of <command>
uname -a - lists system info
usermod - modify a user account
sudo usermod -a -G dialout <usr_name>
which <file_name> - list path of file seen by OS
xxd <file_name> - lists contents of
file_name in hexadecimal form (
-b outputs in binary)
Raspberry Pi Specific #
raspinfo - list tons of info about the Raspberry Pi
pinout - lists information about Raspberry Pi GPIO