Showing posts with label Interview Questions. Show all posts
Showing posts with label Interview Questions. Show all posts

Sunday, July 8

Some Linux Interview Questions & Answers---2


In order to run fsck on the root partition, the root partition must be mounted as readonly

You cannot run fsck on a partition that is mounted as read-write.
In order to improve your system's security you decide to implement shadow passwords. What command should you use? 
pwconv

The pwconv command creates the file /etc/shadow and changes all passwords to 'x' in the /etc/passwd file.
Bob Armstrong, who has a username of boba, calls to tell you he forgot his password. What command should you use to reset his command? 
passwd boba

Some Linux Interview Questions and Answers----1


You need to see the last fifteen lines of the files dog, cat and horse. What command should you use?

tail -15 dog cat horse

The tail utility displays the end of a file. The -15 tells tail to display the last fifteen lines of each specified file.
Who owns the data dictionary? 
The SYS user owns the data dictionary. The SYS and SYSTEM users are created when the database is created.
You routinely compress old log files. You now need to examine a log from two months ago. In order to view its contents without first having to decompress it, use the _________ utility. 
zcat