Skip to content

Latest commit

 

History

History
42 lines (22 loc) · 724 Bytes

terminal.md

File metadata and controls

42 lines (22 loc) · 724 Bytes

Terminal cheats by Hendrik Cromboom


pwd current location

ls directories

cd move to

- back

pushd teleport to

popd pop back

/ home

touch rename or create

cat shows content of small files, multiple files can be printed

mv moves file to dir

cp copy file to destination file

rmdir delete empty dir

rm remove -R removes all files and folders in the dir

ls -l permissions and owners

sudo chown “user” “filename” change ownership

nano ”filename" opens file in terminal with nano options

sudo softwareupdate -i -a download updates and install

sudo softwareupdate -l shows all pending updates

sudo softwareupdate -d downloads but doesn't install updates