Useful Linux commands - Trovemaster/exocross GitHub Wiki

  • cd /full/path/to/directory – change current directory to /full/path/to/directory
  • cd directory – move into the folder directory which is located in your current directory
  • cd .. – move to parent directory e.g move from /full/path/to/directory to /full/path/to
  • pwd – show present working directory
  • ls – list all files and directories in current directory
  • cp /full/path/to/fileA /full/path/to/fileB – copy fileA to fileB
  • cp fileA fileB – copy fileA in your current directory to fileB also in your current directory
  • more file – show contents of file