pushd User/Documents
# do stuffpopd
# we're back to the directory we started inpwd
# display paht of current working directorycat package.json
# display the content of file(s)tac package.json
# cat backwards (starting from the end)less package.json
# page through text one screenful at a timetail package.json
# output the last part of file (10 lines by default)head package.json
# display first 10 lines of file contentcat .env | pbcopy
# copy file content to clipboardwc -c file.txt # prints the number of characters in file.txt
$ 442 file.txt
wc -w file.txt # prints the number of words in file.txt
$ 142 file.txt
wc -l file.txt # prints the number of lines in file.txt
$ 42 file.txt
cat file.txt | wc -l # prints only the number of lines in file.txt
$ 42find ./Documents -name "files.*"find ./Documents -name "files.*"history | grep webpack
# grep your bash history to quickly find instances with webpackinstall package
# after the above execution type
sudo !!
# will become:
sudo install packagels | nl
# List information about files and prepend line numbercp -a /source/. /dest/
# copy source directory to destmv apple orange.doc
# rename the file apple as orange.doc
mv orange.doc ~/Documents/orange.doc
# move orange.doc to the Documents folderdu -sh *
# list files and folders with their sizesprintenv
# List the names and values of all environment variables env
# Display, set, or remove environment variables, Run a command in a modified environment. w
# Display who is logged in and what they are doing. # Display IP address you can access from diferent devices in development mode