Command line stuff

Welcome to command/Terminal line stuff

How to give permission for particular folder and files?

Chmod 777 to a folder and all contents
=> Go to your folder/files which you want to give permission
=> After type following command: sudo chmod -R 777 /www/abc

How to zip using command line

All files & folder using star(*)
– sudo zip -r  * OR Specific folder –


For Specific folder
– sudo zip -r   folder_name

How to Transfer zip to direct another server

Go to project folder where you want to transfer zip and then type below command.
type: sudo wget

How to Unzip using command line

type: sudo unzip


Pull request
Type: git clone repositories_url

commit with different name
1) git add -A

2) GIT_COMMITTER_NAME=”krish chauhan” GIT_AUTHOR_NAME=”krish chauhan”
GIT_COMMITTER_EMAIL=”” GIT_AUTHOR_EMAIL=”” git commit -a -m “commit 2”

simple commit
– commit -m ‘demo file change’

push file
3) git push


How to Enable leverage browser caching on AWS

Type below commands:
sudo a2enmod headers
sudo a2enmod expires
sudo service apache2 restart

Disable cache

sudo a2dismod headers

Other disable module then type below command then type module name
sudo a2dismod <name-of-module>


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s