Listing the Last times a user logged in on server
The syntax is as follows:
#last
InetServices offers both Windows and Linux bare metal server hosting, and cloud server hosting for any small to medium size business. We also offer both PCI and HIPAA Compliant servers allowing you to achieve PCI or HIPAA Compliance without all the worries of figuring it out. InetServices offers much more than just dedicated servers and cloud servers, we offer you a complete solution to your hosting needs including Big Data, Disaster Recovery, and High Availability services.
To install Mytop, run the following command. Make sure you must have RPMForge or EPEL repository under RHEL/CentOS systems.
# yum install mytop
Login to server by SSH, use following command replacing /test for the directory you wish to search through.
# du -ha /test | sort -n -r | head -n 10
login as root:
#usermod -l newname oldname
Use the below given command to create multiple directores in current path.
Syntax:
# mkdir dir-name1 dir-name2 dir-name4 dir-nameN
Flush DNS Cache in linux Using the following command:
#/etc/init.d/nscd restart
Make command is generally used while installing the package from source code. The make utility helps to maintain groups of programs.
How to lock and unlock user account in linux.With the help of two commands you can lock and unlock the user account in Linux.
To Lock the user account in Linux,use the given below command syntax
The motd (message of the day) is used for displaying message when user login into the system.You can display any kind of message on screen. Either it can be legal notice, information, planned outage, warning, alert or anything as per your requirement.
Log into your server as the root user.
To enable the named service, run the following command:
# service named start