On Linux terminal three type of help command can be use: [command] –help whatis [command] man [command] [command] –help : Longer version of the help, there is a list and
Show Disk Usages on Linux (du command)
du This command help to show disk usage for files and folders. For human readable format du -h See total disk usage on last line use -c flag du -ch
Disk Size & Space Commands
Check the all disk size: df -h There is h mean human. Also, we can use h parameter with ls command for see the folder spaces with human eyes. ls
Leave a comment
Compress & Extract a Folder
Compress a folder with tar.gz tar czf backups/20191010-111100.tar.gz public_html # Or create date dynamic tar czf backups/$(date +%Y%m%d-%H%M%S).tar.gz public_html c: Creates a new .tar archive filez: Filter archive through gzipf:
Leave a comment
Install Let’s Encrypt on Ubuntu Sever
First of all, let's install certbot client. Define the certbot repository: add-apt-repository ppa:certbot/certbot Update the package list: apt-get install python-certbot-apache Install the SSL certificate: certbot --apache -d domain.com Install domain
Leave a comment