Posts

Showing posts with the label Linux Basic Command

Linux Basic Commands used in everyday activity

Image
  Here are some useful shortcuts which you may use while working on terminal: Cursor Movement Control: Ctrl-a : Move cursor to the start of a line Ctrl-e : Move cursor to the end of a line Ctrl-Left/Right: Navigate word by word (may not work in all terminals)Modify Text: Ctrl-w : Delete the whole word to the left of the cursor Ctrl-y : Undo the deleted word Ctrl-k : Erase to end of line Ctrl-u : Erase to beginning of line Crtl-l : Clear the terminal 2.  chown command :  Change the owner of a file or directory Parameters: -R:  Capital R  here means to change ownership of all sub-directories if found, and you must use this parameter if you use the command against a directory -f: means change ownership of all sub-directories as well as files also $chown root:root DirName $chown -R root:root DirName $chown -Rf root:root DirName 3.  chmod command : Change the permission of a fil e  or directory The mode which consists of 3 parts, owner, group, and o...