-
Notifications
You must be signed in to change notification settings - Fork 0
Linux Commands
falceso edited this page Jan 12, 2018
·
5 revisions
How to get directory size.
du -sh directory
List Files:
ll -ah
Change Directory
cd dir
Change back to home
cd
Current Directory
pwd
https://learncodethehardway.org/unix/bash_cheat_sheet.pdf
Helpful Search for String
grep -rnw 'Dir' -e 'String'
Simple Rsync
rsync -r --progress {directory|file} {directory2|file2}
MySQL
mysql -u {user} -h {host}
CREATE USER '{newuser}'@'{host, recommended to be %}' IDENTIFIED BY '{password}';
create databases {newdb}
GRANT ALL PRIVILEGES ON {db}.* TO '{user}'@'{host ,recommended to be %}';
-
GRANT ALL PRIVILEGES ON mydb.* TO '{user}'@'{host ,recommended to be %}' WITH GRANT OPTION;
- Used to grant permission to create/delete/edit/update databases/users.