Curioustab
Aptitude
General Knowledge
Verbal Reasoning
Computer Science
Interview
Take Free Test
Aptitude
General Knowledge
Verbal Reasoning
Computer Science
Interview
Take Free Test
Unix Questions
Safely removing year-old files with confirmation (Unix find): Which command removes files (with a user confirmation prompt for each) that have neither been accessed nor modified in the last 365 days under /usr/?
Viewing the end of a file on Unix/Linux: Which command displays the tail (last lines) of a text file on the terminal by default?
Identify your terminal device on Unix/Linux: Which command prints the device file name (for example, /dev/tty2 or /dev/pts/0) of the terminal session you are currently using?
Unix file permissions (chmod): Which command grants execute permission to user, group, and others for every file named 'letter' in the current directory?
Copying and renaming a file between directories (Unix cp): Which command copies the file 'wb' from the 'programs' directory to the 'misc' directory, naming the destination file 'wbx'?
UNIX/Linux file permissions (octal to symbolic): The command 'chmod 761 note' sets permissions using octal notation. Which equivalent symbolic-mode command applies the same permissions to the file named 'note'?
UNIX account database fields: In /etc/passwd (the classic UNIX user account file), what does the 7th field represent?
vi text editor (Vim/vi classic): Which vi command replaces the single character under the cursor and then enters insert mode so you can type any number of replacement characters?
df (disk free) usage: Which option with the df command includes a grand total of disk space across the listed file systems?
Granting execute permission (owner only): Which chmod command gives the file owner execute permission on the file 'note' (without changing other existing permissions)?
Copying a file between directories on UNIX: Which command correctly copies the file 'programs/wb' into the directory 'misc' keeping the same name?
Finding user startup files across the system: Which find command locates all files named '.profile' anywhere on the system and prints their full paths?
Setting permissions for all user classes: Which UNIX command sets permissions on a file by specifying bits for user, group, and others in one operation?
Recursive deletion: Which rm command removes all files in the current directory as well as every file and subdirectory within its subdirectories?
Counting lines, words, and characters: Which UNIX command reports the number of lines, words, and bytes/characters in a file?
UNIX/Linux command basics Which command should you use to create a new directory (folder) from the shell?
vi editor navigation (current line search) In the classic vi editor, which motion finds and moves the cursor forward to the first occurrence of a specified character ch on the current line?
Archiving vs. copying directory trees on UNIX/Linux Which command is traditionally used to copy directory structures “in and out” of archives and is well suited for whole-tree backups and restores?
chmod operators (symbolic mode) Which operator with chmod assigns absolute permissions by setting them exactly (replacing previous bits) for the specified classes?
vi editor insertion at end of line In vi, which single-key command appends text at the end of the current line and enters insert mode there?
1
2
3
4
5
6
7