Login as root, type the below command:
[root@server1 ~]# du -sh /etc/
43M /etc/
Replace /etc/ with the directory you wish to view.
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.
Login as root, type the below command:
[root@server1 ~]# du -sh /etc/
43M /etc/
Replace /etc/ with the directory you wish to view.
Login as root user and issue the command below:
#exim -qff
For a script to run make sure it has execute permission. The below command will add execute permission to a file:
chmod +x filename
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
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.