10 common linux commands

  • ls
    • Lists files or directories
  • cp /path/to/file/origional_file/path/to/file/new/locationcopy_file
    • CP copies the original file or files from one location to another.
  • mv /path/to/file/orignal_file/new/location/file/location/new_file
    • Moves a file or files. The original file is deleted after being moved. MV can be used to also rename a files name from “original” to a “new” file name
  • pwd
    • Displays your current location (present working directory)
  • cd /directory/location
    • Allows a user to move between directories
    • cd .. will move you up a directory
    • cd / with no directory specified will take you to “root”
    • cd ~ will take you to “home”
  • man command_name
    • accesses documentation for the command
  • less file_name
    • Breaks down large file output into small sections. Use the “space bar” to move between pages or view more content of a file. “Q” he will allow you to return to the command prompt.
  • grep pattern filename
    • searches for a specific pattern across as many files as you desire. Think of it as fast way to find specific logs or information
  • top
    • shows which applications and processes are running on your system.

 

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s