Top 10 Random Linux/Ubuntu Commands

2,127 views

Published on

Here is a list of some useful Linux/Ubuntu commands.

1 Comment
1 Like
Statistics
Notes
No Downloads
Views
Total views
2,127
On SlideShare
0
From Embeds
0
Number of Embeds
429
Actions
Shares
0
Downloads
40
Comments
1
Likes
1
Embeds 0
No embeds

No notes for slide

Top 10 Random Linux/Ubuntu Commands

  1. 1. #10 man[..]Usage:# man <command>Description:Show the manual page/s of a command
  2. 2. #9 top[..]Usage:# topDescription:Show a dynamic real-time view of running processExample:Save process snapshot to a file# top -b -n1 > /home/DIR/process.log
  3. 3. #8 wc[..]Usage:# wc [options] [filename]Description:This command is used to count lines, words, andcharactersExamples:Count the number of:✔ lines(-l), words(-w), characters(-c)# wc -l Yourfile
  4. 4. #7 dpkg[..]Usage:# sudo dpkg -i [packagename]Description:Install a Debian (.deb) package
  5. 5. #6 auto-apt run[..]Usage:# sudo auto-apt run <command>Description:This command asks you to install the packages needed bya command that tries to access a file that belongs tosome 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.
  6. 6. #5 ls[..]Usage:# ls [options] [file]Description:List directory contentsExample:✔ List entries by columns# ls -C✔ Use a long listing format# ls -l
  7. 7. #4 history[..]Usage:# historyDescription:Print recently used commands
  8. 8. #3 ln[..]Usage:# ln [options] [target] [linkname]Description:Make links between filesExample:✔ Create a symbolic link to ~/.vim/vimrc with the name .vimrc# ln -s ~/.vim/vimrc ~/.vimrc
  9. 9. #2 find[..]Usage:# find [-H] [-P] [path] [expression]Description:Search for files in a directory hierarchyExample:✔ Find mp3 files in or below the directory /tmp and delete them# find /tmp -name *.mp3 -print | xargs /bin/rm -f
  10. 10. #1 grep[..]Usage:# grep [options] [pattern] [file]Description:Search using a patternExample:✔ Display all the lines that do not contain the word Linux in file.txt#  grep ­v Linux /home/user/Desktop/file.txt
  11. 11. Resources http://www.cse.iitb.ac.in/~csea/workshops/prabhat0 8/slides_08/Linux_commands_08.pdf http://downloads.bosslinux.in/Boss-Training-Materi als/Basic%20Commands.pdf

×