List Files
List the files in a directory with ls
lsOr
ls path/to/dirChange Directory
Change the directory you’re in with cd
cd other_directorycd path/to/directoryOr go back up one level with ..
cd ..Remove Files
Basic use of rm:
rm file.txtTo force delete of something that is write-protected:
rm -f file.txtTo recursively delete all files/subdirectories, use the -r option
# assume my_directory has multiple files in it
rm -r my_directory