CommandWhat it doesWhat it takesFlags
pwdPrints working directory-
cdChanges directoryNew directory to change to
mkdirMakes a directoryIt first takes the new name, and then the directory you want to create this new directory intodo read up on the flag -p
cp
(what an unfortunate name)
Copies files in many wayscp myfile newname duplicates the file and renames it

cp file1 fil2 B09 takes in several files and copies it into a directory

cp -R /home/krish /tmp/mystuff takes two directories, fully copies one directory into the other.

todo Play with these they seem very important
-a or --archive copies the ownership / permission of the files into the new file (by default it copies the default attributes of the user)

-i or --interactive makes you ask for confirmation (otherwise files can be overwritten with no remorse)

-r recursive (copies directories AND their contents). Required when copying directories

-u or --update will only copy files that don’t exist or can be updated. Basically it “skips” already existing files

-v or --verbose prints all sorts of great info while copying
mv”Move”

(Renames files or moves files to another directory)

can be used like mv file1 dir2
or
mv file1 file2 for renaming
For rename:
mv myfile renamedfile

For moving:
mv myfileordirectory newdirectory

If the directory dir2 does not exist, it will create it for you.

rmRemoves a fileA file or directory, but it won’t delete a directory unless you call something like rm -r /home/krishtodo uhhh
rmdirRemoves a directory (checks if it’s empty first though)A directory

Other commands

touchCreates a fileA name