Unix/Linux Commands and Windows OS Basics
Test your knowledge of Unix/Linux command-line operations and Windows operating system basics
Questions
sed -n option
- prints the output
- does not print the output
- changes the output
- None of the above
chmod +x filename
- provides the execute permission
- removes the execute permission
- provides write permission
- removes read permission
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
- All the above.
Which command is used to get the entire line using awk?
- $1
- $0
- $*
- $#
which command is used to print the lines which are having only one ''
- grep "^\$" filename
- grep "^\\$" filename
- grep "^\\\$" filename
- grep "^\\\\$" filename
Which command is used to create recursive directories.
- mkdir -p x/y x/y/z
- mkdir -r x/y x/y/z
- mkdir x x/y x/y/z
- mkdir -x x/y x/y/z
64-bit os means
- CPU register is 64 bit
- It stores information in hard disk as 64-bit format
- Data in main memory stored in 64-bit
- OS is developed using 64-bit compiler
What is the windows version of WIN XP os
- 4.x
- 5.x
- 6.x
- 7.x
Which one is integral part of Windows Vista OS
- MS office
- IE
- Windows Mail
- Windows Media Player
We cannot create following named folder in windows
- foo
- nul
- xp
- reg
If windows pc is not restarted for a long time
- Memory overflow error may occure
- CPU will slow down
- Hard disk operations may be very slow
- May slow down pc performance due to more memory fragmentation.
64-bit os means
- CPU register is 64 bit
- It stores information in hard disk as 64-bit format
- Data in main memory stored in 64-bit
- OS is developed using 64-bit compiler