Linux commands

Use full Linux Commands

  • pwd– see where you are.
  • ls-ls lists the files and directories in the cwd. 
  • cd- Change directory/go to root
  • mkdir- create a new folder (eg. mkdir koha) and rmdir – remove directory or rm-r.
  • echoecho prints the string passed 
  • catcat prints the contents of files (eg. cat  library.txt)
  • cp– make a copy of a file 
  • mv– rename a file or directory or for directory remove   rm -r dir or shred  Securely remove your file
  • rm-rm removes the files
  • man
  • head-head command reads the first ten lines of a any given file name.
  • tail-tail command allows you to display last ten lines of any text file
  • less- less command is used to view files instead of opening the file
  • more-file perusal filter for crt viewing
  • sort- to view the contents of a text file, line by line.
  • grep-grep is a command-line utility for searching plain-text data sets for lines that match a regular expression
  • which- which shows you the path adds or removes permissions from files or directories > u – user> g – group> o – other/world;  r – read  w – write  x – execute
  • chmod-chmod
  • chown- changes the owner of a file
  • history-print out the bash history of the current user to the screen
  • clear

 

References:

  1. The one page Linux manual