Unix QA
Unix QA
UNIX was developed by AT & T Bell labs during 1970s. UNIX is multi-user, multi-
tasking operating system. UNIX uses Shell as a commands for interface between users
and machine.
2. What is Shell?
Shell is used for interaction between user and operating system. By using shell, users
can typed commands for their task and
Multi-user means, there can be more than one user profile in the operation system
whereas multi-tasking means, operating system can performs multiple operations at a
time.
4. What are the basic UNIX commands for File and Directory Management?
Kernel is the essential parts which act as mediator for computer hardware and software
input and output requests and it also handle memory managements.
7. Who is Super user?
Super users is the administrative in the operating system account which has all the
authority i.e. can add user, remove them, set files inaccessible to other users and so on
and super users are called as system administration.
The Hello World can be display in the command line by using echo command.
chmod command in UNIX changes the file protection mode of the directory.
1 $ mkdir freshersemploy
2 $ rmdir freshersemploy
Also Read Java, C, C++, Software Testing Interview Question and Answer Click
Here
By using date command, we can display the time and date in unix.
The first part of the file can be displayed by using head(which shows few lines from
starting of the file) whereas the last part of the file can be display with UNIX
command tail(which display last few line of the file).
The command used for reading the file in UNIX is cat. Example is shown below.
1 $ cat freshersemploy.txt
15. How to change directory?
To change the directory in UNIX, the command used is cd Below is the example:
1 $ cd freshers1 employ1
16. In UNIX, how to search for a file?
The command used for copying files is cp. The example is given below.
1 $ cp file1 file2
18. How to print a file?
To print a file, lpr UNIX command is used. Example for printing the file is given below:
1 $ lpr file1
19. Explain Process in UNIX?
To display list all the process running either in background, foreground or suspended,
use jobs command. To terminate a certain process, kill command is used.
1 $ jobs
2 $ %process1 % process2 %process3
3 $ kill %process2