Saturday, May 7, 2022

Interview Questions: - (UNIX - 4)

UNIX: -

 

Q) How to create an empty directory?

Ans - $ mkdir <Directory_Name>

 

Q) How to create multiple directories in same level?

Ans - $ mkdir <1st Directory Name> <2nd Directory Name> <3rd Directory Name>

Example - $ mkdir d1 d2 d3 d4

 

Q) How to create multiple directories in hierarchical structure?

Ans - $ mkdir –p <1st Directory Name>/<2nd Directory Name>/<3rd Directory Name>

Example - $ mkdir –p d1/d2/d3/d4

 

Q) Why we go for Unix Operating Systems where window is a popular operating system?
Ans - These are the below points why we go for Unix Operating System.
1. Multi User, Multi Tasking
2. Crash Free
3. Virus Free


Q) Unix Architecture?
Ans -


SHELL - It is the interface between user and kernel. It receives the input from user, converts it

into kernel understandable codes and send to kernel.
KERNEL - It interacts with hardware, process the input received from shell and response back
to shell.
HARDWARE - It stores physical data as computer hardware.

 

Q) Why we go for shell scripting?

Ans – In Unix command prompt, we can run a single command at a time. To combine and run multiple commands for performing certain tasks, shell script is evolved.

No comments:

Post a Comment

Interview Questions: - (UNIX - 0) UNIX: -   Q) How to get inode number of a file/directory? Ans – $ ls –i <File/Directory_Name...