1. How to find kernel version?
uname -r2. How to display filesize in human readable format (e.g. KB, MB etc.,)?
ls -lh3. What is the Linux process priority levels?
19 (lowest) to –20 (highest)4. How many characters can have filename ?
2555. How to Shutdown the system after 10 minutes?
shutdown -h +106. what is the command to rebuild the initrd image ?
mkinitrd7. How to gather sar output specific time for memory?
sar -s 02:00:00 -e 03:00:00 -r8. What file lists the DNS servers a UNIX host uses ?
/etc/resolv.conf9. What’s the default filesystem type on Redhat Linux 5?
ext310. What command can you use to review boot messages?
dmesg11. which filet to set a kernel parameters on a Linux machine?
/etc/sysctl.conf12. What is the configuration file for ports?
/etc/services13. How to create a swap file in a data partition?
dd if=/dev/zero of= bs= count=14. How to delete files older than 7days?
find /path/to/files* -mtime +7 -exec rm {} \;15. How to check disk usage in human readable and sort by size?
du -sh * | sort16. How to list the password and its related details an user?
chage -l username17. How to set account expiry date for an user?
chage -E "2012-06-31" raja18. How to disable password aging for an user account?
chage -m 0 -M 99999 -I -1 -E -1 madhu19. How to check memory map of a given process id 5264?
pmap 526420. How to verify crontab entry for a specific user
crontab -u username -l