Linux commands for DBAs

How To Change The Date And Time From The Console

To change the date

date -d mm/dd/yy


date –date=mm/dd/yy

where mm=month, dd=day and yy=year

To change the time on Linux from the console type:

date -s hh:mm:ss


date –set=hh:mm:ss

How To reboot Linux Machine/Server

A. Linux comes with various utilities that allow a system administrator to reboot, halt or poweroff the system.

Reboot Linux command

You must login as root to reboot the system. Open the terminal and type any one of the following command to reboot the system (following is immediate reboot):
# /sbin/reboot

# /sbin/shutdown -r now

You can also use sudo command under Ubuntu Linux:
$ sudo reboot

It is a good idea to provide notification to all logged-in usersthat the system is going down and, within the last five minutes of TIME, new logins are prevented. Type the following command:
# shutdown -r +5

Started Up time of Server

[oracle@dbserver ~]$ uptime
17:16:36 up 110 days, 8:54, 3 users, load average: 0.06, 0.01, 0.00

How to check Server Memory

[oracle@dbserver ~]$ cat /proc/meminfo
MemTotal: 16429180 kB
MemFree: 151432 kB
Buffers: 85532 kB


About Sher khan

Senior Oracle DBA, Oracle 10g , Oracle 11g OCE ,Oracle 12C and Oracle 11g OPN certified Specialist, OCP Certified in Oracle 9i,10g , 11g and 12C. I am working in Oracle technology since 2004. Currently working in U.A.E Email:
This entry was posted in Linux commands for DBA. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s