Saturday, October 27, 2012

Must Know Basic Commands For Linux | Part-2

  1. bzip2 - Compresses specified contents into a .bz2 archive or extracts from a .bz2 archive depending on parameters.
  2. chmod / chown - Changes the access permissions of one or more files (chmod) or changes the ownership of a particular file to a new user (chown). Only users with permission or ownership of a file can change that file’s permissions or ownership.
  3. cp - Copies files to a new location with a new name depending on the parameters. Can copy directories too, whether recursively (includes all subdirectories) or not.
  4. find / locate - Searches the system starting at a specific directory and matching all files within that location to a set of conditions laid out by the command parameters. Very useful for quickly finding certain files.
  5. grep – Searches through all of the files in a specified location trying to find files that contain lines that match a given string. Returns a list of all the files that scored a match.
  6. install - Used in conjunction with Makefiles to copy files from one location to the system. Not to be confused with installing packages from a software repository.
  7. mkdir / rmdir - Creates a directory (mkdir) or deletes a specified directory (rmdir). Directories can only be created and deleted within directories that you have permission in.
  8. mv - Moves files and directories to another location. Can be used to rename files and directories by keep their source and destination locations the same.
  9. open – Opens a specified file using the default system application for files of its type.
  10. rm - Remove and remove directory. Used to delete files and directories from the system, whether one at a time or in batch.
  11. tar - Creates a .tar archive or extracts from a .tar archive depending on specified parameters.
  12. zip / unzip - Creates a .zip archive or extracts from a .zip archive depending on specified parameters.
  13. man - There’s a running gag in the Linux community that man is the only command you need to know. It stands for manual, and it will give you detailed information on commands and aspects of Linux.
  14. pwd - Displays the current working directory for the command line terminal. Good for when you’ve lost track of where you are in your system.
  15. reboot - Immediately stops all running processes, shuts down the system, then reboots.
  16. shutdown - Stops all running processes and shuts down the system. Parameters can be specified to issue a delayed shutdown or a shutdown at a particular time.
  17. sudo - Runs commands as root, which means no limitations due to permissions.

No comments: