Unix/Linux and Windows Command Line Operations
Test your knowledge of Unix/Linux commands, Windows command-line operations, file systems, shell scripting, and system administration tasks.
Questions
$ find . -type f -mtime 1
- List all ordinary files in current directory that have been modified within the last 1 minute
- List all ordinary files in current directory that have been modified within the last 1 hour
- List all ordinary files in current directory that have been modified within the last 24 hours
- List all ordinary files in current directory that have been modified within the last 48 hours
Unlike Windows, in UNIX we cannot create a directory named 'a box' i.e. space is not allowed in UNIX for file and directory naming.
- True
- False
which of the following shells support float and array data types?
- Korn
- Bash
- Bourne
- None of these
which of the following are special systen parameters that contain information abt current processes? (select more than one answer)
- ?
- !
- $
- #
What is the output of the last echo command executed on a bash shell? $ bash $ export a=aaagggccc $ echo ${a/g/b}
- aaagggccc/g/b
- aaabbbccc
- aaabggccc
- a/g/b
Which unix text processing tools will help me to replace all the instances of "hi india" to "HiIndia"?
- awk
- sed
- perl
- emac
I opened a text file in vi editor and typed the following command while in escape mode. :3 s/abc/xyz/
- It looks for the all the abc strings in line 3 and replaces them to xyz.
- It looks for the first abc string in the first 3 lines and replaces to xyz.
- It looks for the first abc string in line 3 and replaces to xyz.
- It looks for the first 3 abc string in the file and replaces them to xyz.
What key combination is typically used to interrupt running programs?
- CTRL-E
- CTRL-C
- CTRL-D
- CTRL-I
What symbol is used to "pipe" two commands together?
- :
- ||
- !
- |
What command would you use to find all files under the current directory owned by the user foo?
- find ./ -type file -user foo
- find ./ -type f -owner foo
- find ./ -type f -o foo
- find ./ -type f -user foo
If no one has physical access to the computer, the root password need not be changed.
- True
- False
What would be the correct syntax to mount the share 'data' from Windows machine 'jupiter'?
- mntsmb -s //jupiter/data /mnt/Data
- mount -t smbfs /mnt/Data //jupiter/data
- mount -t smbfs //jupiter/data /mnt/Data
- smbfs -mount //jupiter/data /mnt/Data
NFS cannot be used to increase the access to the files on the mounted filesystem.
- True
- False
A directory is stored on the hard disk like any other file.
- True
- False
What is the command to open cmd with other user'd or admin's ID?
- RunAs
- Open
- Run
- None
Select Correct Command Format
- c:>net use
- c:>Runas /user:domain\username cmd
- c:>net use x: \servername\Shared folder
- c:>Cd\
Command to release and renew IP Address?
- Ipconfig /release, Ipconfig /Renew
- ipconfig /rel ,Ipconfig /New
- ipconfig /release ,Ipconfig /New
- None
Heart of UNIX Operating System
- Kernel
- Shell Interpreter
- Command line interpreter
- Others
Which command used to print current user id
- who
- whoami
- ami
- others
Which command to create a directory
- mkdir
- MKdir
- mdir
- other