Linux Commands Cheat Sheet
Linux Commands Cheat Sheet
1. SYSTEM
2. HARDWARE
4. USERS
# useradd -c "Sam Tomshi" -g admin -m sam # Create user "sam" and add to group
"admin"
6. PROCESS RELATED
# chmod octal file-name # Change the permissions of file to octal , which can
be found separately for user, group and world
octal value
4 - read
2 – write
1 – execute
Example
Example
# ls -l test.txt
9. COMPRESSION / ARCHIVES
make
make install
11. SEARCH
# find /home/tom -name 'index*' # Find files names that start with "index"
# find /home -size +10000k # Find files larger than 10000k in /home
scp
# scp file.txt server2:/tmp # Secure copy file.txt to remote
host /tmp folder
rsync
# cd # Go to $HOME directory