Linux 88-100

You might also like

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 1

Write a command to find all of the files which have been accessed within the last 30

88 days. find /home/durgasoft -atime -30 ( checks all the files/directories under /h

89

90

91 How to get a particular string as your prompt ? Give syntax of that command? PS1="PARTICULAR STRING"

92
it’s the inbuild command to check the return value of a conditional express
93 what is the use of "test" command in unix? less than 3 and returns true or false)

94 In vi editor how do you execute unix commands? go to "ex mode" from "command mode" using shift + : then -- :!<unix-com
95 How do you find path of a directory? Give its syntax. find / -name <name-of-directory> -type d
unix is a teminal based OS ( means multiple users can connect at the sam
96 What is the basic difference between unix and windows operating systems? only one user can connect any point of time)

97 How do you remove a crontab file? crontab -r

98 How do you know about running processes of a particular user? ps -u <user-name>

tee

99 Through which command will redirect output to bOth screen and files at the same time? ls -l | tee f1 ( the output will go to f1 file and the screen)

100 What is the use of pipes ( | ) ? redirect the input of previous command to the next command ( ls -l | tee f1

You might also like