Linux Basic commonds
-
pwd(Print Working Directory): Displays the full path of the current directory you are currently in. -
ls(List): Lists all files and folders in your current directory. (Tip: Usels -lato see hidden files and detailed permissions). -
cd(Change Directory): Switches your current directory (e.g.,cd /var/logmoves you to the log folder;cd ..moves you up one level). -
mkdir(Make Directory): Creates a new directory or folder (e.g.,mkdir my-folder). -
rm(Remove): Deletes files or directories (e.g.,rm filename.txt; userm -rfwith caution to delete folders recursively). -
cp(Copy): Copies files or directories from one location to another (e.g.,cp source.txt backup.txt). -
mv(Move/Rename): Moves files to a new location or renames them (e.g.,mv oldname.txt newname.txt).