Command Summary
Note for below. [] will be used to signify optional flags or arguments. <> will be used to signify placeholders for argument text. ... will be used to signify a repeat of the type before
pwd- shows your current working directoryls [-al] [<files_or_folder> ...]- used to show the contents of the current or specified directory/files.-areveals hidden files-lpresents in a table/list like format
cd [<folder_path>]- changes directory to the specified folder- if no folder given, will go to the home
~directory
- if no folder given, will go to the home
mkdir <new_directory_path>- creates a new directorytouch <filename>- creates an empty file, if it doesn't already existrm [-r] [<path> ...]- removes the files listed-rmust be used when deleting a non empty directory. It will delete the directory and its contents.
mv <current_file> <new_file_name>- rename a file to a new namemv <current_file> <new_folder_path>- move a file to a different foldermv <current_file> <new_folder_path>/<new_file_name>- combined move and rename of the file
mkdir <new_folder>- create a new folderrmdir <folder>- remove an empty folder- for a non-empty folder, see the above
rm -r
- for a non-empty folder, see the above
clear- scroll history up and provide a blank space on your terminal