You are on page 1of 1

UNIX LIKE COMMANDS

//list directory
ls
//shows dot files as well
ls -la
//showing hidden files
defaults write com.apple.finder AppleShowAllFiles YES
defaults write com.apple.finder AppleShowAllFiles NO
//print working directory
pwd
/home/foobar
//will output the contents of a specific file
cat filename
//removing file from a directory
rm Rf
(-r "recursive" -f "force" (suppress confirmation messages))
//this will create a file with empty content in it whatsoever
touch directory/filename

You might also like