Skip to content

Instantly share code, notes, and snippets.

@navdeepsingh
Last active July 3, 2019 05:52
Show Gist options
  • Save navdeepsingh/6eb9990524508d5d21d4bbb59a8c45df to your computer and use it in GitHub Desktop.
Save navdeepsingh/6eb9990524508d5d21d4bbb59a8c45df to your computer and use it in GitHub Desktop.
EC2 SSH Commands

Check Status of file permissions

sudo stat TARGETFOLDER

Change Owner of File/Folder

sudo chown bitnami TARGETFOLDER

Check Status of all services

sudo /opt/bitnami/ctlscript.sh status

Run Apache

sudo apachectl start

Run MySQL

sudo /opt/bitnami/ctlscript.sh start mysql

To delete cache from bitnami server

sudo chown -R bitnami:bitnami wpfc-minified/

Unzip file

unzip file.zip -d destination_folder

Copy from one directory and Paste to another

cp -r /path/to/directory /path/to/location/new-name

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment