Commonly Asked Unix Questions

What is meant by passwd file?

This file maintains each and every user information with 7 fields. The 7 fields are Username:passwd:uid:gid:fullname:home:shell.

What is Shell?

Shell is a command line interpreter. Shell acts as an  interface between user and the kernel.

What is Kernel?

Kernel is core part of unix o/s. It is a group of hundreds of system calls.

What are different flavours of unix o/s?

Any operating system designed based on unix kernel called as flavour of unix. The following are some flavours of unix
Linux ---- Red Hat
Sun solaris --- Sun Microsystem
IBM-AIX ----- IBM
Hp-ux ----- HP
Sco-unix ----- santa crus operations
IRIX------ Silicon Graphics.

What are the different security features in Unix?

1. Password protection.
2. File permissions.
3. Encryption.

What’s the command to find out today’s date? 

date

What’s the command to find out users on the system? 

who

How do you find out the current directory you’re in?

pwd

What is the command to see the location of command?

Whereis  <commandname>

How do you find out your own username? 

Whoami  (or)  logname

How to close the current user account?

exit

How to create empty file?

Touch <filename>

How do you remove a file? 

Rm <filename>

How to join multifile files vertically?

Cat   file1  file2  file3 ……
The file for which we do not have write permission can be deleted using the command?
rm -f  <filename>

How do you remove a directory and its subdirectories?

rm –rf <directoryname>

How to rename a file?

Mv <filename>

How to copy multiple files and directories into some other directory?

cp -r source_directory destination_directory

How to see hidden files?

Ls –a

How to see files and subdirectories files recursively?

Ls –R

How to see files in long list format page wise?

Ls –l | more

Unix

Have a Unix Problem
Do you have a UNIX Question?

Unix Books :-
UNIX Programming, Certification, System Administration, Performance Tuning Reference Books

Return to : - Unix System Administration Hints and Tips

(c) www.gotothings.com All material on this site is Copyright.
Every effort is made to ensure the content integrity.  Information used on this site is at your own risk.
All product names are trademarks of their respective companies.
The site www.gotothings.com is in no way affiliated with or endorsed by any company listed at this site.
Any unauthorised copying or mirroring is prohibited.