UNIX Commands
. echo lpstat sort
at env ls spell
banner exit mail su
bash export man tail
bc file mesg tee
cal find mkdir touch
cancel finger more type
cat grep mv umask
cd head passwd uname
chgrp history ps unset
chmod id pwd vi
chown jobs rm wc
clear kill rmdir who
cp ln set write
date lp/lpr sleep xxd
Commands by Categories
Simple: banner, date, cal, finger, uname, type, ls, cd, pwd, hostname
Status: jobs, ps, who, id, env, lpstat, umask, mesg, history, tty
File: file, cp, mv, ln, rm, rmdir, mkdir, touch, chmod, chgrp, xxd, head, tail
Filters: cat, sort, spell, grep, wc, tee
Misc: bc, mail, vi, lp, cancel, at, kill, find, passwd
Shell scripting topic ideas
View the File System
- Show files at the root (/) directory
- Show files in user's home directory
- Show files in the parent directory
- Show files in a specified directory
Tally Files
- Tally the number of directories from a given starting point
- Tally the number of symbolic links from a given starting point
- Tally the number of text files from a given starting point
- Tally the number of shell scripts from a given starting point
- Tally the number of data files from a given starting point
- Tally the number of symbolic links from a given starting point
- Draw a histogram showing the relative numbers of different file types
Search for files
- Search for a file by name
- Search for a file by inode number
- Search for a file by owner
- Search for a file by size
- Search for files that have been modified recently
- Search for files that contain a certain string of characters
View files
- Select a file for viewing
- View the entire file allowing paging through the file
- View a file in hexadecimal format
- View the top 20 lines of a file
- View the bottom 20 lines of a file
Process status
- Show just system processes
- Show processes belonging to a particular user
- Show any defunct processes
- Show all processes