pwd show directory
ls show all files in directory
ls -all info about files
ls -a shows hidden files
clear clears screen
cd change directory / redirects to home
cd .. go backwards
cd - goes to prev directory
mkdir new-folder make a directory
touch new-file.txt make a new file
cp new-file.txt new/folder/new-file-copy.txt make a copy
mv new-file-copy.txt ../new-file-copy.txt moves a file
mv file.txt file-2.txt rename a file
up/down arrow keystoggle prev next commands
rm new-file-copy.txt removes a FILE
rm -r new-folder deletes all files and folder
cat file-name.txt view whats in a file/s
cat file1.txt file2.txt > file3.txt concatenates two files
> pipes content into a file or over rides
echo Hi prints HI
echo Hi >> file3.txt HI gets added to end of the file content
man provides documentation eg man ls
nano manage file content / file editor
ctrl + c exits process
Top comments (0)