Skip to content

Instantly share code, notes, and snippets.

@Chell0
Last active July 17, 2018 20:58
Show Gist options
  • Save Chell0/1dcdadd6a703d68e9d0fc8611945d07d to your computer and use it in GitHub Desktop.
Save Chell0/1dcdadd6a703d68e9d0fc8611945d07d to your computer and use it in GitHub Desktop.
Advanced Linux Commands

Intermediate Terminal Commands

  • echo - used to add text to a new file or even an existing file.
  • cat - used to display the contents of a file and also easily view programs.
  • gedit, nano, vi and jed - are all text editors you can use from the terminal to edit files, add text to files etc.
  • Ctrl+X - used to save your files after editing them from the terminal.
  • sudo - stands for SuperUser Do.
  • df - to shows the available disk space in every partition in your system.
  • df -m -show the available disk space in megabytes.
  • du -shows disk usage of a certain file/folder in your system.
  • ls -lah - to view file sizes of all files in a specific folder.
  • uname -a - to show information about the system the linux distro is running.
  • chmod +x - make a file executable and change the permissions granted to it. Something like chmod +x numbers.php.
  • chmod 755 - to give a file root permissions. Something like sudo chmod +x numbers.php.
  • ping - to check your connection to a server. Like ping firefox.com.
  • Ctrl+C - to stop any command running in the terminal safely.
  • Ctrl+Z - to force stop any command running in the terminal.
  • sudo reboot - to reboot your computer.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment