Created
November 28, 2019 19:59
-
-
Save amer1616/83fd79a64a6446bd33b4fe4af29923d0 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pwd: know the directory in which you're located | |
cd: change directories | |
navigate to Desktop - cd ~/Desktop | |
navigate to home directory - cd / | |
navigate up one level from the current directory - cd .. | |
navigate to multiple level of directory - cd /var/www | |
ls: list the current directory content | |
mkdir [folder_name]: making new directory/folder | |
touch [file_name.txt]: create file with its type | |
cp: makes a copy of a file | |
cp file foo | |
mv: moves a file to a different location or renames a file | |
mv foo ~/Desktop | |
mv file foo - renames the original file to foo | |
rm: remove file | |
-rm: force remove file/folder | |
cat [file_name]: view text files | |
nano [file_name]: view & edit text files | |
chmod: changes the permissions on the files listed | |
chown: used to change the owner and group of files, directories and links |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment