🐧Linux Basics

A list of useful Linux commands you should know

  • Making a file executable: chmod +x file

  • Executing a file: ./file

  • Starting a executable in a screen to keep it running after you disconnect from your vps: screen -S name ./file

  • Resuming a screen: screen -r name

  • Killing all screens: pkill screen

  • Editing a file in the console: nano file -> to save press CTRL + O followed by ENTER and CTRL + X

  • Changing directory: cd directory

  • Going back one directory: cd ..

  • Listing everything in your current folder: ls or ls -l for more information or ls -a for hidden files.

Last updated