Syndicate content

User Loggedin

Welcome to Gujarat Hosting

How to display time and date in history command?

To Dispalay time and date in the history command to set HISTTIMEFORMAT in bash profile.
 
HISTTIMEFORMAT="%d/%m/%y %T "
Or
echo 'export HISTTIMEFORMAT="%d/%m/%y %T "' >> ~/.bash_profile
 
Where,
%d - Day
%m - Month
%y - Year
%T - Time
To see history type

7 Deadly Linux Commands

If you are new to Linux, chances are you will meet a stupid person perhaps in a forum or chat room that can trick you into using commands that will harm your files or even your entire operating system. To avoid this dangerous scenario from happening, I have here a list of deadlyLinux commands that you should avoid.

1. Code:
rm -rf /

This command will recursively and forcefully delete all the files inside the root directory.
 
2. Code:

How To Create VirtualHost in Ubuntu??

Very easy to create VirtualHost in Ubuntu :

1. Open the new file in the /etc/apache2/sites-available/your-domain-name.com

2. Open file