Command Line
Command Line Tools
How to schedule a command to run for each minute using cron
Dec 6th
The cron system daemon wakes up for every minute and executes all the scheduled commands. It looks at user specific jobs along with system specific jobs defined in /etc/cron.d directory. The “crontab” command can be used add a user specific cron job.
Run “crontab -e” which opens an editor with a list of user specific jobs defined one per each line. If it is the first time you are running, you would probably see it blank. Just add the following aentry and replace the command with whatever you would like to run each minute.
Use the following command to edit user specific More >
How to find amount of free disk space in Linux
Dec 6th
The “df” command can be used to get the details of disk usage and free space on all mounted partitions in Linux system. “df” stands for “disk free”. The following shows how to get the details in human readable format.
[neo@techpulp ~]# df -h Filesystem Size Used Avail Use% Mounted on /dev/sda3 16G 12G 4G 67% / /dev/sda1 80M 16M 64M 20% /boot /dev/sda5 8G 1.2G 6.8G 15% /home /dev/sda6 20G 10G 10G 50% /disk1 [neo@techpulp ~]#
How to find list of user groups I belong to in Linux
Nov 16th
The Linux command groups can be used to determine the list of groups a specific user belongs to. This should work in almost all flavors of Linux distributions. The following example shows how to use it.
[neo@techpulp ~]# groups engineers devel [neo@techpulp ~]# groups neo engineers devel [neo@techpulp ~]# groups liz engineers qa [neo@techpulp ~]#


Recent Comments