bash history with time
Add
export HISTTIMEFORMAT='%F %T '
sudo mysql -u root
> use mysql;
> ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY '***';
// *** is your password
> FLUSH PRIVILEGES;
Newer version default can't save password in plain text
Just add the following paragraph into the specific user file (a unique code) in ~/.subversion/auth/svn.simple/
K 8
passtype
V 6
simple
K 8
password
V 20
NotTheActualPassword
(Change 20 to the length of your password)
If you just use the following command, you get "disk usage" not "the actual file or folder size".
# du -h --max-depth=1
So add --apparent-size arguments
# du -h --apparent-size --max-depth=1
Assume you have the keypair file generated by AWS console
In your local machine and your account
> cat ~/.ssh/id_rsa.pub
# Copy the output
> ssh -i /path_to_key_pair/my-key-pair.pem ubuntu@your-ec2-ip-or-domain
In AWS EC2
ubuntu> sudo su your-account
# If you still don't have user account, create one by this instruction
# https://aws.amazon.com/premiumsupport/knowledge-center/new-user-accounts-linux-instance/
your-account>echo [The id_rsa.pub content you just copy] >> ~/.ssh/authorized_keys
your-account>exit
ubuntu>exit
In your local machine, connect to ec2 by
>ssh your-account@your-ec2-ip-or-domain
Voila