Category: Linux

[How to] Backup and Restore MySQL Database using mysqldump

Backing up a database using mysqldump: mysqldump -u [username] [dbname] > [dump_filename] Restoring database from a backup: mysql -u [username] […]

Linux Basics & Resources

Initial Server Setup with CentOS 6 How To Install Linux, Apache, MySQL, PHP (LAMP) stack On CentOS 6 Change owner […]

How to sync files between linux servers using Rsync

Rsync is a linux application to sync files between linux servers. It is not installed by default, so to use […]

Compress files and directories using tar.gz on linux

Compressed Archive Syntax: tar -zcvf archive_name.tar.gz directory_or_file_to_compress DeCompress (Extract) Archive Syntax: tar -zxvf archive_name.tar.gz see also How to create and […]

List files and directories by file size on linux

You can get a list of files and directories sorted by file size using command below: du -sm * | […]