Rename a file or folder via command line


 

Remove directory with files

-r “recursive” -f “force” (suppress confirmation messages)


 

See hidden files in directory

ls: “Directory listing”,  -a:”Show with hidden files/folders” -l:”vertical detailed list view”


 

Delete the content of your app/cache and app/logs folders

rm “Remove”


 

 

Give all permissions (reads and writes) to your app/cache and app/logs folders

chmod “Change mod write permission” 777 “everybody read/write/execute”


 

Print Working Directory

It shows your absolute path on computer.  like: /Users/trevor/Dev/web

 

Find / Search A File

 

Duplicate / Copy A File