Date command options.
Date command to get the current date.
$ date=$(date +%Y-%m-%d)
$ echo $date
Date command to get yesterday's date.
$ date=$(date --date=yesterday +%Y-%m-%d)
$ echo $date
Date command to get tomorrow's date.
$ date=$(date --date=tomorrow +%Y-%m-%d)
$ echo $date ...
Description
ufw is stands for Uncomplicated Firewall, this program is for managing a Linux firewall and aims to provide an easy to use interface for the user, as well as support package integration and dynamic-detection of open ports. ufw is not intended to provide complete firewall functionality via its command interface, but ...
Introduction
When screen is called, it creates a single window with a shell in it and then gets out of your way so that you can use the program as you normally would. Then, at any time, you can create new windows with other programs in them (including more shells), kill existing windows, view a list of windows, turn output logging on and off, copy-and-paste text between windows, view the scroll back history, switch between windows in ...
Using the command dd you can create swap file.
dd - convert and copy a file
First of all check the current swap size using the command 'free'
$ free
Output
total used free shared buffers cached
Mem: 1025620 1009140 16480 0 2252 465116
-/+ buffers/cache: 541772 483848
Swap: 2096440 18924 2077516
Create a directory called 'swap' under slash '/'
$ sudo mkdir ...
Using mysqldump
Using 'mysqldump' command you can take the mysql database backup. This command all the datas to a text file.
The syntax is
shell> mysqldump [options] db_name [tables]
shell> mysqldump [options] –databases db_name1 [db_name2 db_name3…]
shell> mysqldump [options] –all-databases
Backuping ...