2. #10
man[..]
Usage:
# man <command>
Description:
Show the manual page/s of a command
3. #9
top[..]
Usage:
# top
Description:
Show a dynamic real-time view of running process
Example:
Save process snapshot to a file
# top -b -n1 > /home/DIR/process.log
4. #8
wc[..]
Usage:
# wc [options] [filename]
Description:
This command is used to count lines, words, and
characters
Examples:
Count the number of:
✔ lines(-l), words(-w), characters(-c)
# wc -l Yourfile
6. #6
auto-apt run[..]
Usage:
# sudo auto-apt run <command>
Description:
This command asks you to install the packages needed by
a command that tries to access a file that belongs to
some uninstalled package.
Example:
# sudo auto-apt run ./configure
➢ This command will ask you to install the needed
packages (It will call apt-get automatically) stopping
the current process and continuing once the package is
installed.
7. #5
ls[..]
Usage:
# ls [options] [file]
Description:
List directory contents
Example:
✔ List entries by columns
# ls -C
✔ Use a long listing format
# ls -l
8. #4
history[..]
Usage:
# history
Description:
Print recently used commands
9. #3
ln[..]
Usage:
# ln [options] [target] [linkname]
Description:
Make links between files
Example:
✔ Create a symbolic link to ~/.vim/vimrc with the
name .vimrc
# ln -s ~/.vim/vimrc ~/.vimrc
10. #2
find[..]
Usage:
# find [-H] [-P] [path] [expression]
Description:
Search for files in a directory hierarchy
Example:
✔ Find mp3 files in or below the directory /tmp and
delete them
# find /tmp -name '*.mp3' -print | xargs /bin/rm -f
11. #1
grep[..]
Usage:
# grep [options] [pattern] [file]
Description:
Search using a pattern
Example:
✔ Display all the lines that do not contain the word
'Linux' in file.txt
# grep v 'Linux' /home/user/Desktop/file.txt