This is a list with some useful basic Linux commands:
sudo [command] -> It will execute command with elevated (administrative) privileges.
![](https://simplecoding.net/wp-content/uploads/2023/01/VirtualBox_new_ubuntu_28_01_2023_16_31_32.png)
pwd -> This command is path to current working directory. Sometimes you need to check where you are in directory tree.
![](https://simplecoding.net/wp-content/uploads/2023/01/VirtualBox_new_ubuntu_28_01_2023_16_36_14.png)
cd [folder] -> enter a folder. If we use cd .. -> exit the folder and go to the parent folder
![](https://simplecoding.net/wp-content/uploads/2023/01/VirtualBox_new_ubuntu_28_01_2023_16_39_46.png)
ls -> list file in current directory, If we use ls -a -> then also the hidden files will be shown.
![](https://simplecoding.net/wp-content/uploads/2023/01/VirtualBox_new_ubuntu_28_01_2023_16_43_17.png)
cat [file] -> print in the console the file content.
![](https://simplecoding.net/wp-content/uploads/2023/01/VirtualBox_new_ubuntu_28_01_2023_16_52_22.png)
cp [file source] [file destination] -> copy file from source to destination. To copy whole folder with all of the files use cp -R [folder name] [folder destination]
![](https://simplecoding.net/wp-content/uploads/2023/01/VirtualBox_new_ubuntu_28_01_2023_16_55_56.png)
mv [file source] [file destination] -> move file from one place to another. If the same place is set then it will rename the file as show in the example.
![](https://simplecoding.net/wp-content/uploads/2023/01/VirtualBox_new_ubuntu_28_01_2023_16_58_30.png)
rm [file name or files name with while card] -> remove files if it is used with -R then can remove whole directory. rm -R [directory name]
![](https://simplecoding.net/wp-content/uploads/2023/01/VirtualBox_new_ubuntu_28_01_2023_17_01_00.png)