Question:
What command you execute to display the last five commands you have entered? Which partitions might you create on mail server HDDs other than the root, swap and boot partitions? Which partitioning tool is available in all distributions? Which two commands can you use to delete directories? Which file defines all users on your system?
Answer:
1. history|tail -5 2. /var 3. fdisk, parted 4. rm, rmdir 5. /etc/passwd Source: CoolInterview.com
Answered by: Arun Tomar | Date: 6/30/2008
| Contact Arun Tomar
1.may be history 2./var/mail partition 3. fdisk 4. rmdir and rm -rf 5. /etc/passwd Source: CoolInterview.com
Answered by: shivaram | Date: 6/30/2008
| Contact shivaram
history 5 //to see last five commands
#cat /etc/passwd //to see all users # rmdir dirname //to remove directories Source: CoolInterview.com
Answered by: priyanka dash | Date: 6/30/2008
| Contact priyanka dash
1) history 5 is also enough ,,,, but the thing is 5 will display even current command so use history 6 to show past 5 commands.
2) fdisk
3)cat /etc/passwd //to see all users
4)rmdir -d or rmdir -r -f
5)/etc/passwd Source: CoolInterview.com
Answered by: prashanjit | Date: 8/10/2008
| Contact prashanjit
1. history|tail -6 Source: CoolInterview.com
Answered by: linganna | Date: 8/11/2008
| Contact linganna
history 5 /home,/var,/tmp fdisk rmdir,rm -r /etc/passwd Source: CoolInterview.com
Answered by: nihar ranjan panda | Date: 8/23/2008
| Contact nihar ranjan panda
1. #history 5 2. /var/spool/mail 3.disk druid/fdisk 4.rmdir.rm -r 5. /etc/passwd Source: CoolInterview.com
Answered by: prakhar srivatava | Date: 9/29/2008
| Contact prakhar srivatava
1> " history 5 " is used to see last 5 commands 2>"/var/mail " partition 3>fdisk 4>rmdir , rm -r 5>etc/passwd Source: CoolInterview.com
Answered by: shineesh P K | Date: 10/13/2009
| Contact shineesh P K
1.history 5 3.fdisk 4.rmdir directory name,rmdir -rf directory name 5.cat /etc/passwd Source: CoolInterview.com
Answered by: Pratibha Singh | Date: 10/22/2009
| Contact Pratibha Singh
history 5 /var/spool/mail/ fdisk rmdir,rm-rf /etc/passwd Source: CoolInterview.com
Answered by: masthan | Date: 8/17/2010
| Contact masthan
If you have the better answer, then send it to us. We will display your answer after the approval.
Rules to Post Answers in CoolInterview.com:-
- There should not be any Spelling Mistakes.
- There should not be any Gramatical Errors.
- Answers must not contain any bad words.
- Answers should not be the repeat of same answer, already approved.
- Answer should be complete in itself.
|