BT0051 – 02Marks –30UNIX OPERATING SYSTEMS
1.Define Process. Which is the command used to find out currently executing Processin UNIX?
A process is simply an instance of a running program. A process is said to be bornwhen the program starts execution and remains alive as long as the program is active.$ Ps -e2.What is the output of :$ ps-e$ ps-a commands
All processes including user and system processes2 Processes of all user excluding process not associated with terminal3.Which command is used to transfer a Foreground process to Background? Give oneexample.
Ans-> nohup sort emp.lst &
Bg$ bg find / name a.out –print4.Say you have three Process
P1, P2 and P3
running in background. You want toassign priorities to them, which command is suitable give its syntax?
$ nice5.Which command is used to:Fetch names from a file Name.txt sort them and remove any duplicate entries.Ans-> $ sort –u Name.txt6.Which commands are used to carry out following operations in vi- Editor:
To save a file
To start editing a file
To save and Quit a file
To quit without saving (Forced quit)
:i3: wq4: q!