Академический Документы
Профессиональный Документы
Культура Документы
When the file is in the editing mode(vi editor) come to non-editing mode(by pressing
escape key). /pattern will find next line matching Pattern (Pattern is the text you are
searching for) and? Pattern will find previous line matching pattern.
4. cp fil1 fil2 command is failed, what are the possible chances for failing?
cp could fail because of the following reason
The destination file directory in to which the file is copied may not have write (w)
permission.
The source file may not have read permission(r)
The source file may not be present.
The destination directory may not have enough space (Space can be checked with df k)
8. What is the relation between the parent and child process created by "fork"?
The child process is the exact copy of the parent process.The child process inherits real
userid,real groupid,effective userid,effective groupid,Open files of its parent,current
directory,root directory, file mode creation mask,as well as the exported variables.
The child process differs from the parent process in the following ways
The child process has a unique process ID, which does not match any active process
groupid.
The child process has different parent process id.
The child process has its own copy of parents file descriptors and directory streams.
9. what are the popular shells available in the market? Which shell have you worked on ? What
is diff between <x> shell and <y>shell ?
Bourne shell, C shell and Korn shell
Job control
Aliases
Shell functions
"Sensible" Input/Output redirection
Directory stack
Command history
Command line editing
Vi Command line editing
Emacs Command line editing
Rebindable Command line editing
User name look up
Login/Logout watching
Filename completion
Username completion
Hostname completion
History completion
sh
N
N
Y(1)
Y
N
N
N
N
N
N
N
N
N
N
N
N
csh
Y
Y
N
N
Y
Y
N
N
N
N
Y
N
Y(1)
Y(2)
Y(2)
N
ksh
Y
Y
Y
Y
Y
Y
Y
Y
Y
N
Y
N
Y
Y
Y
N
N
N
N
N
N
N
N
N
N
N
sh
N
N
N
Y
N
N
N
N
N
N
N
Y
N
N
N
N
N
N
N
Y
N
N
N
N
N
N
csh
N
Y
N
N
Y
Y
Y
N
N
N
Y
N
Y
N
N
N
N
N
Y
Y
Y
N
Y
N
N
N
sh
N(5)
Y
N
Y
Y(7)
Y(7)
N
Y
N
N
Y
Y
Y
Y
N
N
11.
How to find for a file? How will you find all files which are NOT accessed in
days ?
find directoryname name file_name print
find directoryname atime +10 -print
13.How to copy contents of file 'a' and file 'b' to the file 'ab'?
cat a b > ab
the last 10
15.What is a shell?
Shell is a command line interpreter of the Unix system
4.
5.
6.
7.
8.
9.
10.
11.
12.
13.
14.
15.
16.
17.
18.
19.
20.
21.
22.
23.
24.
25. Uname the uname utility prints the information about the current system on the statndard
output
26. cron, crontab- Cron command starts a process that executes commands at specified dates
and time.Crontab utility manages users with cron by copying,creating,listing and removing
crontab files
27. umask-Gets or sets the file mode creation mask
28. join-A join of two relations specified by the lines of file1 and file2
29. Nice-Used to invoke a command with altered scheduling priority
30. Nohup-Runs a commnd immune to hangups
31. Uniq- filters out repeated lines in a file