-
General Knowledge
-
General Topics
- Abbreviations
- Books and Authors
- Famous Academies and Institutes
- First in India (Man)
- First in India (Women)
- Important Dates
- Famous Personalities
- Public Administration Science
- Astronomy
- Biology
- Botany
- Chemistry
- Physics
- Zoology
- Inventions and Scientists Geography
- Geographical Epithets India
- Geographical Epithets World
- Places Associated with Industries in India
- National Parks and Sanctuaries
- Towns on River Banks History
- Indian History and Culture
- Indian National Movement
- Indian Polity and Constitution
- Ancient Period in Indian History
- World History
- Governor General of India Culture
- Languages
- Indian Dance and Music
- Classical Dances of India
- Folk Dances in India and Tribal Dances in India
- Famous Dancers, Instrumentalists, Vocalists in India World
- First in the World
- Parliament Names
- United Nation Organizations (UNO)
- World's Famous News Agencies
- World Industries
- National Emblems
- Countries and Alternative Names
- Countries and Capitals
- View More topics...
- General Aptitude
- Problems on Ages
- Alligation and Mixture
- Area
- Arithmetic Progression
- Average
- Banker's Discount
- Boats and Streams
- Calendar
- Chain Rule
- Clock
- Compound Interest
- Decimal Fraction
- Height and Distance
- Logarithms
- Mensurations
- Numbers
- Odd Man Out and Series
- Partnership and Share
- Percentage
- Permutation and Combination
- Pipes and Cisterns
- Probability
- Problems on H.C.F and L.C.M
- Problems on Numbers
- Problems on Trains
- Profit and Loss
- Races and Games
- Ratio and Proportion
- Simple Interest
- Simplification
- Stocks and Shares
- Surds and Indices
- Time and Distance
- Time and Work
- True Discount
- Volume & Surface Areas
- General English
- Antonyms
- Synonyms
- Vocabulary Test
- One Word Substitution
- Sentence Completion
- Sentence Improvement
- Idioms & Phrases
- Homonyms
- Word Formation
- Active & Passive Voice
- Direct and Indirect Speech
- Spotting Errors
- Double Synonyms
- Choose the Appropriate Filter
- Spelling Test
- Transformation
- Reconstruction of Sentence
- Chooose the Correct or Incorrect Sentence
- Networking
- Interview Questions
-
Programming
- .NET
- Java
- ASP.NET
- C++
- Perl
- Python
- Ruby and Rails
- Struts
- Core Java
- Hibernate Database
- DB2
- MS SQL Server
- MySQL
- Oracle
- SQL
- DBMS
- Data Warehousing
- Data structures and Algorithms Cisco
- CCNA
- CCNP Routing
- CCNP Switching
- Internetworking
- Border Gateway Protocol Windows
- MCSE
- Exchange Server
- Windows Server 2008
- DNS & Active Directory
- Firewall Questions Linux
- Unix
- Linux Server Administrator
- Linux System Administrator
- Linux File Manipulation
- Database
- Home
- Server Administration
- Linux+
Instructions
- Total Questions 20
- Each question carry 1 mark
- Must answer all the questions (otherwise report card will not be generated)
- If you dont want to take a test, simply click the check answers button and view all the answers with explanations
- Do Not Refresh the Page
- No Time Limit
- Good Luck :)
You Scored % - /
Correct Answers :
[A, B]
Explanation :
The -Uvh parameter issues an upgrade command (which installs the program whether or not an earlier version is installed) and creates a series of hash marks to display the command’s progress. The -i parameter installs the program if it’s not already installed but causes no progress display. Option C uses a package name, not a complete filename, and so it will fail to install the package file. The -e option removes a package.
Correct Answers :
[B]
Explanation :
Option B, fsck, is Linux’s filesystem check utility. It’s similar in purpose to the DOS and Windows CHKDSK and ScanDisk utilities, but these DOS and Windows utilities don’t work on Linux filesystems like ext2fs or ReiserFS. Option A, mkfs, creates new filesystems; it doesn’t diagnose or fix filesystem problems.
- D.INSERT INTO animals;
Correct Answers :
[A]
Explanation :
A freshly installed MySQL database is unlikely to have a ready-made database of animals, so your first task is to create that database with the CREATE DATABASE command, as shown in option A. (You could call the database something other than animals, of course.) The USE command in option B will only be useful once the database has been created. Once the database is created, you can use CREATE TABLE, as in option C, to create a table; but you’ll need an existing database first, and this command also requires information about the type of data to be stored, which option C doesn’t provide. Option D’s INSERT INTO command stores data into a table once it’s been created, so it’s far from the first command you’ll use. It also requires additional specification of the data to be stored, so it’s incomplete.
- A.manual topic
- B.man topic
- C.? topic
- D.info topic
Correct Answers :
[B, D]
Explanation :
The correct answers, man and info, are two common Linux help packages. Although ? is a common help command within certain interactive programs, it isn’t a help command in bash or other common Linux shells.
- A.Coordinated Universal Time (UTC)
- B.Internet Time
- C.Local time
- D.12-hour time
Correct Answers :
[A, C]
Explanation :
Unix systems traditionally store time in UTC (a.k.a. Greenwich Mean Time), and Linux may do so as well. Most other x86 PC OSs traditionally store time as the local time however, so Linux also supports this option. Internet Time is an alternative to the 24-hour clock in which the day is broken into 1,000 “beats.” Standard PC BIOSs don’t support this time format. Likewise, a 12-hour clock isn’t terribly useful to computers because it doesn’t differentiate a.m. from p.m.
- A.insmod
- B.depmod
- C.modprobe
- D.lsmod
Correct Answers :
[D]
Explanation :
Typing lsmod produces a list of the modules that are currently loaded. The insmod and modprobe programs both load modules—either a single module or a single module and all those on which it depends, respectively. The depmod command generates the modules.dep file that contains module dependency information.
- A.Type chown music instruments.txt in the file’s directory.
- B.Type chgrp music instruments.txt in the file’s directory.
- C.Type chgroup music instruments.txt in the file’s directory.
- D.Type chown .music instruments.txt in the file’s directory
Correct Answers :
[B, D]
Explanation :
The chgrp and chown commands can both change the group ownership of a file. The chgrp command takes a group name and a filename as parameters, as in option B. The chown command normally changes a file’s owner; but if you provide a group name preceded by a dot (.), as in option D, it changes the group of a file. The chown command shown in option A will change the primary ownership of the file to the music user, if such a user exists on the system; it won’t change the group ownership. There is no standard chgroup command, as in option C.
- A.The link will probably have to be a symbolic link.
- B.You must own /usr/local/bin to create the link.
- C.You can create the link only if the link’s location is on the same filesystem as the original directory.
- D.Only the system administrator can do this.
Correct Answers :
[A]
Explanation :
Hard links to directories aren’t permitted by most filesystems, so you’ll probably have to create a symbolic link, as noted in option A. Contrary to option B, anybody may create a link, not just the original’s owner. Option C describes a restriction of hard links; but because this link will probably have to be a symbolic link, this restriction is unimportant and option C is incorrect. Option D describes a more severe restriction than option B, but it’s incorrect for the same reasons.
- A.:rq
- B.:wq
- C.:re
- D.:we
Correct Answers :
[B]
Explanation :
The colon (:) starts ex mode, from which you can enter commands. In ex mode, r includes a file in an existing one, w writes a file, e loads an entirely new file, and q quits the program. Thus, the desired combination is :wq. For more information,
- A.The user’s incoming mail is forwarded to the junkme user on the same system.
- B.The user’s incoming mail is stored in the ~/junkme file.
- C.The user’s incoming mail is sent through the ~/junkme program file.
- D.The user’s incoming mail is flagged as spam and deleted.
Correct Answers :
[C]
Explanation :
The ~/.forward file is a user e‑mail forwarding file. The vertical bar character (|) at the start of such a file is a code to send the e‑mail through the specified program file, so option C is correct. To do as option A describes, the file would need to read junkme or junkme@hostname, where hostname is the computer’s hostname. To do as option B describes, the leading vertical bar would have to be omitted. It’s conceivable that the ~/junkme script does as option D describes, but there’s no way of knowing this for certain.
- A.Retype the command, and be sure you type the filename correctly, letter by letter.
- B.Retype the command, but press the Tab key after typing a few letters of the long filename to ensure that the filename is entered correctly.
- C.Press the Up arrow key, and use bash’s editing features to correct the typo.
- D.Any of the above.
Correct Answers :
[D]
Explanation :
Any of these approaches will work, or at least might work. (You might err when performing any of them.) Option B or C is likely to be the most efficient approach; with a long filename to type, option A is likely to be tedious.
- A.cat
- B.echo
- C.tee
- D.sed
Correct Answers :
[B]
Explanation :
The echo command is implemented internally to bash, although an external version is also available on most systems. The cat, tee, and sed commands are not implemented internally to bash, although they can be called from bash as external commands.
- A.No currently running processes are associated with your shell, so you may log out without terminating them.
- B.The remote computer PROC isn’t accepting connections; you should contact its administrator to correct the problem.
- C.Your computer is handling too many processes; you must kill some of them to regain control of the computer.
- D.You, one of your configuration files, or a program you’ve run has set the $PROC environment variable to Go away.
Correct Answers :
[D]
Explanation :
The echo command echoes what follows to standard output, and $PROC is an environment variable. Thus, echo $PROC displays the value of the $PROC environment variable, meaning that it must have been set to the specified value by you, one of your configuration files, or a program you’ve run. Although many environment variables are set to particular values to convey information, $PROC isn’t a standard environment variable that might be associated with information described in options A, B, or C.
- A.It prints the name of the working directory.
- B.It changes the current working directory.
- C.It prints wide displays on narrow paper.
- D.It parses Web page URLs for display.
Correct Answers :
[A]
Explanation :
The pwd command prints (to standard output) the name of the current working directory. The remaining options are simply incorrect, although option B describes the cd command and various tools can be used to reformat wide text for display or printing in fewer columns, as in option C.
- A.Your shell will be a root shell.
- B.The gedit program will terminate, but nothing else unusual will happen.
- C.Your X session will terminate.
- D.The xterm window will close.
Correct Answers :
[D]
Explanation :
The exec command causes the rest of the command to replace the current shell. Thus, when you exit from gedit in this scenario, the result will be the same as if you’d terminated the shell, namely, the xterm window will close. The exec command doesn’t raise the execution privilege, so option A is incorrect. (The su and sudo commands can raise execution privilege, though.) Because the xterm window closes, option B is incorrect. X won’t ordinarily terminate when a single xterm does, and definitely not if that xterm was launched from a window manager, so option C is incorrect.
- A.Type ./ followed by the program name: ./myprog.
- B.Type the program name alone: myprog.
- C.Type run followed by the program name: run myprog.
- D.Type /. followed by the program name: /.myprog.
Correct Answers :
[A]
Explanation :
The dot (.) character refers to the current working directory, and the slash (/) is a directory separator. Thus, preceding a program name by ./ unambiguously identifies the intention to run the program that’s stored in the current directory. Option B will run the first instance of the program that’s found on the current path. Because paths often omit the current directory for security reasons, this option is likely to fail. The run command isn’t a standard Linux command, so option C is unlikely to do anything, much less what the question specifies. Option D would be correct except that it reverses the order of the two characters. The effect is to attempt to run the .myprog file in the root (/) directory. This file probably doesn’t exist, and even if it did, it’s not the file the question specifies should be run.
- A.Using a custom X-based application
- B.Using the Firefox Web browser
- C.Using the less pager
- D.Using the Vi editor
Correct Answers :
[C]
Explanation :
By default, man uses the less pager to display information on most Linux systems. Although an X-based version of man does exist (xman), the basic man doesn’t use a custom X-based application, nor does it use Firefox or the Vi editor.
- A.ifconfig < file.txt
- B.ifconfig >> file.txt
- C.ifconfig > file.txt
- D.ifconfig | file.txt
Correct Answers :
[C]
Explanation :
The > redirection operator stores a command’s standard output in a file, overwriting the contents of any existing file by the specified name. Option A specifies the standard input redirection so that ifconfig will take the contents of file.txt as input. Option B is almost correct; the >> redirection operator redirects standard output, as requested, but it appends data to the specified file rather than overwriting it. Option D specifies a pipe; the output of ifconfig is sent through the file.txt program, if it exists. (Chances are it doesn’t, so you’d get a command not found error message.)
$ myprog &> input.txt
- A.Standard error to myprog is taken from input.txt.
- B.Standard input to myprog is taken from input.txt.
- C.Standard output and standard error from myprog are written to input.txt.
- D.All of the above.
Correct Answers :
[C]
Explanation :
The &> redirection operator sends both standard output and standard error to the specified file, as option C states. (The name of the file, input.txt, is intentionally deceptive, but the usage is still valid.) Option A mentions standard error but describes it as if it were an input stream, which it’s not; it’s an output stream. Option B mentions standard input, but the &> operator doesn’t affect standard input.
- A.2
- B.3
- C.4
- D.An arbitrary number
Correct Answers :
[D]
Explanation :
In principle, you can pipe together as many commands as you like. (In practice, of course, there will be limits based on input buffer size, memory, and so on, but these limits are far higher than the 2, 3, or 4 commands specified in options A, B, and C.)
|
|
||||||||||||||||||||||||||||