Pages

Friday, March 15, 2013

Useful basic liux Command

Some basic UNIX command which helps in managing server
  1. copy a directory
    cp -r dir1 /path/to/destination/dir
  2. Extract tar.gz file
    tar xvfz archive_name.tar.gz
  3. create a tar.gz file
    tar cvfz archive_name.tar.gz dirname/
  4. Search file with file name
    find . -type f -name '*.php'

No comments: