UNIX Commands
. (source) echo lpstat sleep
at env lp/lpr sort
banner exit ls spell
bash export mail tail
bc file man tee
cal find mesg touch
cancel finger mkdir type
cat grep more umask
cd head mv uname
chgrp history passwd unset
chmod hostname ps vi
chown id pwd wc
clear jobs,bg,fg rm who
cp kill rmdir write
date ln set 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