SlideShare a Scribd company logo
Top 10 Random Linux/Ubuntu Commands
#10
          man[..]
Usage:
# man <command>
Description:
Show the manual page/s of a command
#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
#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
#7
          dpkg[..]
Usage:
# sudo dpkg -i [packagename]
Description:
Install a Debian (.deb) package
#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.
#5
          ls[..]
Usage:
# ls [options] [file]
Description:
List directory contents
Example:
✔ List entries by columns

# ls -C
✔ Use a long listing format

# ls -l
#4
          history[..]
Usage:
# history
Description:
Print recently used commands
#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
#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
#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
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

More Related Content

DOCX
RTF
Useful linux-commands
PPT
Basic command ppt
PDF
Basic Linux commands
PPT
Basic 50 linus command
PPTX
Linux command for beginners
PDF
Basic linux commands for bioinformatics
PDF
Useful Linux and Unix commands handbook
Useful linux-commands
Basic command ppt
Basic Linux commands
Basic 50 linus command
Linux command for beginners
Basic linux commands for bioinformatics
Useful Linux and Unix commands handbook

What's hot (20)

PPTX
Linux basics
PDF
linux-commandline-magic-Joomla-World-Conference-2014
PPTX
Unix slideshare
PPT
Common linux ubuntu commands overview
PDF
Basic linux commands
PPT
PPTX
Terminal Commands (Linux - ubuntu) (part-1)
DOC
Unix Basics For Testers
PPT
Unix(introduction)
PDF
Quick Guide with Linux Command Line
PDF
Unix Command Line Productivity Tips
PPT
Linux Commands
DOCX
Basic linux commands
PPT
Basic linux day 5
PPT
PDF
17 Linux Basics #burningkeyboards
PPTX
Basics of-linux
PPTX
Unix Linux Commands Presentation 2013
PDF
Linux Network commands
Linux basics
linux-commandline-magic-Joomla-World-Conference-2014
Unix slideshare
Common linux ubuntu commands overview
Basic linux commands
Terminal Commands (Linux - ubuntu) (part-1)
Unix Basics For Testers
Unix(introduction)
Quick Guide with Linux Command Line
Unix Command Line Productivity Tips
Linux Commands
Basic linux commands
Basic linux day 5
17 Linux Basics #burningkeyboards
Basics of-linux
Unix Linux Commands Presentation 2013
Linux Network commands
Ad

Similar to Top 10 Random Linux/Ubuntu Commands (20)

PDF
PDF
Devops for beginners
PPTX
Linux System commands Essentialsand Basics.pptx
PDF
Building robust and friendly command line applications in go
PPTX
Linux basics
PPT
Examples -partII
PPTX
Linux basics part 1
PPTX
PDF
Linux: A Getting Started Presentation
PDF
Linux file commands and shell scripts
PPTX
Linux Presentation
DOCX
50 Most Frequently Used UNIX Linux Commands -hmftj
DOCX
50 most frequently used unix
DOCX
50 most frequently used unix
PDF
Linux basics and commands - from lynxbee.com
PDF
Linux Commands CheatSheet - PDF.pdf for engineer
PDF
Termux commands-list
ODP
Devops for beginners
Linux System commands Essentialsand Basics.pptx
Building robust and friendly command line applications in go
Linux basics
Examples -partII
Linux basics part 1
Linux: A Getting Started Presentation
Linux file commands and shell scripts
Linux Presentation
50 Most Frequently Used UNIX Linux Commands -hmftj
50 most frequently used unix
50 most frequently used unix
Linux basics and commands - from lynxbee.com
Linux Commands CheatSheet - PDF.pdf for engineer
Termux commands-list
Ad

Top 10 Random Linux/Ubuntu Commands

  • 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
  • 5. #7 dpkg[..] Usage: # sudo dpkg -i [packagename] Description: Install a Debian (.deb) package
  • 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
  • 12. 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