Time and Date:
- cal
- date
Disk Usage or File Size:
- df -h
- du -sh*
System Performance:
- top
Exploring:
- pwd
- ls -lah
- cd /tmp cd ~
- which python3
Viewing Files:
- less /etc/password
- cat /etc/password
Counting lines:
- wc -l /etc/passwd
- touch newfile.txt
- mkdir newdir
- mkdir -p moredir/dir1/dir2
- rm -rf moredir
- ps
- ./sleeper.sh &
- fg 1
Let's practice some common shell commands
Part 1: Navigate the file system
cd into the foo directory Part 2: Create a file with touch
Run the command again? What happens? Part 3: Remove files and directories
Make a file and then delete it: touch bar.xt then run rm bar.txt Part 4: List files list the contents of /usr/bin by running the command ls -l /usr/bin What did you see?