if[ -f filename ]
checks for the existence of a file
checks for existence of a directory
checks for read permission on a file
checks for write permission on a file
How to display first 10 lines of all files ending with ".txt"?
cat *.txt -length=10
disp 10 .txt
head -10 *.txt
print 10 *.txt
How do you get help about the command "mv"?
help mv
man mv
mv ?
mv help
How to search all files in current directory for the word "test"
grep test *
lookup test *
search test *
dir test .
How to rename "FILE1" to "FILE2" ?
ren FILE1 FILE2 - i
ren FILE1 FILE2
cp FILE1 FILE2
mv FILE1 FILE2
How to list all files in the current directory?
dir *
dir .
list all
ls -a
In which system call we have to use file descriptor to identify the file.
fchmode()
fchmod()
chmod()
All the above.
which command gives the operating system's version number?
uname -v
uname -p
uname -s
uname -r
Which command is used to create recursive directories.2) mkdir -v x/y x/y/z3) mkdir -p x/y x/y/z4) mkdir x x/y x/y/z
i and ii
i,ii,iv
iii,iv
Which command is used to get the entire line using awk?
$1
$0
$*
$#