The basic form of commands : command_name [options] argument(s)
- UNIX/Linux is case-sensitive.
File Handling Commands
Command | Task |
mkdir | make directories |
ls | list contents in the directory |
cd | change directory |
cp | copy files or directories |
pwd | print path of current working directory |
mv | move or rename files |
rm | remove files or directories |
find | search for files in the directory herarchy |
chmod | change permission of files or directories |
Displaying files
Command | Task |
cat | display the contents of a file on the standard output |
more | display the contents of the file |
head | display the first 10 lines of the file |
tail | display the last 10 lines of the file |
grep | print lines matching a pattern |
Miscellaneous Commands
Command | Task |
ps | report a snapshot of the current processes |
kill | kill a process with PID |
du | estimate file space usage |
df | report filesystem disk space usage |
man | show the manual of command |