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
Copying files in UNIX/Linux Which command copies a regular file (and, with flags, can also copy directories)?
chmod practice (symbolic mode example) For a file named note, which command removes execute permission from the user (owner) and grants read permission to the group and others?
Removing files on UNIX/Linux Which standard command removes one or more files from the filesystem?
Creating links in UNIX/Linux filesystems Which command is used to create links (hard or symbolic) between files or paths?
vi editor modes: identifying a non–input command Which of the following is
not
an input-mode command in vi (i.e., it does not enter insert/replace input)?
UNIX/Linux shell usage: Which command saves the output of the who command into a file named user.lst while simultaneously displaying the same output on the terminal?
UNIX login initialization: Which per-user startup file contains shell instructions that are executed automatically when a user logs in (for Bourne/POSIX-compatible shells)?
UNIX file permissions: Which chmod command sets read-only permission for all categories (user, group, and others) on a file named note, removing any write or execute rights?
UNIX permission bits (octal): For a mode of 652 (owner=6, group=5, others=2), which statement is true about the resulting permissions?
UNIX basics: Which command removes (deletes) an empty directory from the filesystem?
UNIX utilities: What is the primary purpose of the cat command when used on a regular text file?
Shell globbing: Which wildcard matches any number of characters (including zero characters) when expanding filenames in a POSIX shell?
UNIX reminders: Which command provides a simple automatic reminder service that emails upcoming events listed in a user’s calendar file?
grep regular expressions: Which pattern anchors a match to the end of a line so that only lines ending with the text “pat” are selected?
Interpreting permission triplets: In a long listing, the first permission triplet shows “rw-” for the owner. What does this indicate about the owner’s access rights on that file?
vi/vim navigation — moving the cursor left In the classic vi (and vim in normal mode), which single-key motion command moves the cursor one character to the left?
vi/vim navigation — scroll half a page backward (up) In vi/vim normal mode, which control-key command scrolls the screen up by half a page (i.e., a half-page backward)?
Unix cmp utility — report differing byte numbers and values in octal Which cmp option produces a detailed list of each differing byte position along with the differing byte values in octal for two files being compared?
Changing to your home directory in Unix shells Which command returns the current shell to the user's home directory using the standard POSIX behavior?
vi/vim editing — delete the character under the cursor In vi/vim normal mode, which command deletes the single character directly beneath (under) the cursor?
1
2
3
4
5
6
7