Operating Systems: Windows Shortcuts and Unix/Linux Commands
Test your knowledge of Windows keyboard shortcuts and Unix/Linux command-line operations
Questions
Is du a command? If so, what is its use?
- No, it is not a command
- Yes, it stands for kilobytes used by each subdirectory
- It will display the current users available in the system
- The df command reports on the space left on the file system
Difference between cat and more command ?
- cat displays files cotents. if the file is large the contents scroll off the screen before we view it. commad 'more' is like a pager which displays the contents page by page
- more displays files cotents. if the file is large the contents scroll off the screen before we view it. commad 'cat' is like a pager which displays the contents page by page
- Both will not used to display
- Both will display page by page
"Out put of the following commands.cat file1>file1 and cat par.3 par.4 par.5 >> report "
- Append the content in file1 and cat par.3 par.4 par.5 >> report -> contents of files par.2 par.4 par.5 appended to file report
- cat file1>file1 - file emptied and cat par.3 par.4 par.5 >> report -> contents of files par.2 par.4 par.5 appended to file report
- Both will do the same poeration. Will append the data to the destination files.
- cat file1>file1 - Wont do any operation in file 1 and cat par.3 par.4 par.5 >> report -> contents of files par.2 par.4 par.5 appended to file report
What is the use of ‘grep’ command
- ‘grep’ is a pattern search command. It will display the line which contains the pattern
- ‘grep’ is a pattern search command. It will display thepattern alone
- ‘grep’ can be used to search the patterns with the conditions
- It is an efficient command to search the multiple patterns.
How to terminate a process which is running
- end pid
- delete pid
- kill pid
- kill all
What is a pipe
- Tells the shell to arrange for the output of the preceding command to be passed as input to the following command
- It is just used to connect two diifferent commands
- It is useful when you use awk commands only
- Tells the shell to arrange for the output
How is the command ?$cat file2 ? different from ?$cat >file2
- cat file2 - it will take the content to the file 2 and cat>file2 will display an error
- Both used to display the contents
- cat file2 - it displays the content of the file 2 and cat>file2 - if the file is empty it creates the content into the file2 and if the file has contents it overwrittens
- Both used to append the contents
"What is the unix command used for giving or changing the permissions for files "
- Changemode
- chmod
- chper
- both chmod and chper
What is Output - awk 'BEGIN { if (length($0) > max) max= length($0) } | END { print max }' test.txt
- Will print the longest line
- Will display all the content of the file
- Print the count of the first line of the file.
- Will give the count of the longest line
How to open a Folder in Explorer mode ?
- Alt + F7
- Alt + F5
- Alt + Enter
- Alt + F10
What "Alt + Space bar" will do?
- Drops down the window control menu
- Drops down the window File menu
- Closes the Window
- Maximize the Window
What will happen if you are holding the Shift key while PC is booting?
- Restarts the PC
- Loads the last known good Configuration
- Boots in Safe Mode
- None of the Above
How to take print screen of the Active Window ?
- Ctrl + Print Screen
- Print Screen
- Shift + Print Screen
- Alt + Print Screen
How you bring up the Windows Start menu?
- Ctrl + Esc
- Ctrl + Tab
- Alt + Esc
- All the Above
Which key combination will be used to set automatically adjust the widths of all the columns in Windows explorer ?
- Ctrl + F2
- Ctrl + (the '+' key on the keypad)
- Alt + (the '+' key on the keypad)
- None of the Above
What action does the touch command perform?
- Executes the script
- Changes the time stamp of existing file
- Creates a file of 0 byte.
- b and c
- All of the above
Winkey or Ctrl + Esc will open the 'Start Menu'
- True
- False
Winkey + Tab' will be used to ?
- equal to Alt + TAB
- Cycles through open windows with out bringing the Window to the top (press Enter)
- Opens first window in the task bar
- None of the Above
How to open system properties ?
- Winkey + P
- Winkey + F10
- Winkey + Break
- Winkey + S
What 'Winkey + D' will do?
- Minimises all windows
- Maximize all windows
- Unminimises all windows
- Restore all windows