Home  
 
  Ask Questions  
 
  Feed Back  
 
  My Questions  
 
  Contact Us  
 
  About Us  
 


 Interview Questions  
 Our Services  

Linux Interview Questions and Answers

NEW INTERVIEW QUESTIONS.COM OPERATING SYSTEMS INTERVIEW QUESTIONS LINUX INTERVIEW QUESTIONS QUESTIONS LISTING

Linux Interview Questions & Answers


A D V E R T I S E M E N T





Previous Page 1 Page 2 Page 3 Page 4 Page 5 [ Page 6] Page 7 Page 8 Page 9 Page 10 Page 11 Page 12 Page 13 Page 14 Page 15 Next

Newinterviewquestions.com: World's Largest Interview Questions Website.
Questions Question: You want to verify which lines in the file kickoff contain 'Bob'. Which of the following commands will accomplish this? Choose one: a. sed -n /Bob/p kickoff b. sed /Bob/p kickoff c. sed -n 'Bob p' kickoff d. sed /Bob/ kickoff
Ratings Rating:
View Answer View Answer: Here

Questions Question: You search for the word prize in the file kickoff by typing grep prize kickoff. However you also find lines containing prize as part of a word such as prizes but do not find Prize. How should you change the command to find all occurrences of prize as a word and not part of a word? Choose one: a. grep -lc prize kickoff b. grep -cw prize kickoff c. grep -vi prize kickoff d. grep -iw prize kickoff
Ratings Rating:
View Answer View Answer: Here

Questions Question: You want to know how many lines in the kickoff file contains 'prize'. Which of the following commands will produce the desired results? Choose one: a. grep -n prize kickoff b. grep -c prize kickoff c. grep -v prize kickoff d. grep prize kickoff
Ratings Rating:
View Answer View Answer: Here

Questions Question: You have a file named 'kickoff' and would like to find every line beginning with a number. Which of the following commands will accomplish this? Choose one: a. grep [0-9] kickoff b. grep ^[0-9] kickoff c. grep [0-9]$ kickoff d. grep $[0-9] kickoff
Ratings Rating:
View Answer View Answer: Here

Questions Question: You want to search for sale and sales. What regular expression should you use? Choose one: a. sale* b. sale? c. ^sale d. sale$
Ratings Rating:
View Answer View Answer: Here

Questions Question: You want to construct a regular expression that will match all lines that end with 'stuff'. Which of the following expressions will do this? Choose one: a. ^stuff b. stuff$ c. $stuff d. stuff^
Ratings Rating:
View Answer View Answer: Here

Questions Question: You want to delete the following directories and their files /home/bob/letters /home/bob/sales so you issue the command rmdir /home/bob/letters but the command fails. What went wrong? Choose one: a. You need to first delete the sales subdirectory and its files before deleting its parent directory, letters, and its files. b. There is no such command as rmdir. c. The rmdir command cannot remove directories that are not empty. d. The rmdir command will not remove directory heirarchies.
Ratings Rating:
View Answer View Answer: Here

Questions Question: You need to create two new directories in your home directory. The first one is called /home/bob/letters and the second one is /home/bob/letters/sales. Which of the following command lines should you use? Choose one: a. mkdir /home/bob/letters/sales b. mkdir letters; mkdir sales c. mkdir letters/sales d. mkdir home/bob/letters/sales
Ratings Rating:
View Answer View Answer: Here

Questions Question: You attempt to delete a file called sales.mem using the rm command but the command fails. What could be the problem? Choose one: a. You do not have delete rights to the file called sales.mem. b. You need to use the -i option with rm to delete a file. c. You do not have write rights to the directory containing the sales.mem file. d. You are not the owner of the file sales.mem.
Ratings Rating:
View Answer View Answer: Here

Questions Question: You have a directory called /home/ben/memos and want to move it to /home/bob/memos so you issue the command mv /home/ben/memos /home/bob. What is the results of this action? Choose one: a. The files contained in /home/ben/memos are moved to the directory /home/bob/memos/memos. b. The files contained in /home/ben/memos are moved to the directory /home/bob/memos. c. The files contained in /home/ben/memos are moved to the directory /home/bob/. d. The command fails since a directory called memos already exists in the target directory.
Ratings Rating:
View Answer View Answer: Here

Questions Question: You read an article that lists the following command: dd if=/dev/fd0 bs=512 of=/new What does this accomplish? Choose one: a. It copies the contents of a floppy disk to a file called new. b. It copies the file new to a floppy disk. c. It formats a floppy d. It erases a floppy
Ratings Rating:
View Answer View Answer: Here

Questions Question: You want to copy the user's home directories to a new location. Which of the following commands will accomplish this? Choose one: a. cp -rP /home/* newdir b. cp -i /home/* newdir c. cp -iv /home/* newdir d. cp -b /home/* newdir
Ratings Rating:
View Answer View Answer: Here

Questions Question: Which of the following tasks cannot be accomplished with the touch command? Choose one: a. Create a new file b. Change a file's modification time c. Change a file's access time d. Change a file's creation time
Ratings Rating:
View Answer View Answer: Here

Questions Question: You are debugging a new application that is crashing. You want to watch the messages as they are being written to the log. What command should you use? Choose one: a. tail b. head c. less d. log
Ratings Rating:
View Answer View Answer: Here

Questions Question: Which of the following commands will display a file one screen at a time? Choose one: a. less b. page c. tr d. cat
Ratings Rating:
View Answer View Answer: Here

Questions Question: Which of the following cannot be accomplished with the cat command? Choose one: a. Create a new file b. Display the contents of a file c. Append information to another file d. Change the contents of a file
Ratings Rating:
View Answer View Answer: Here

Questions Question: Which of the following commands will combine the contents of the files tom and betty into a new file called friends? Choose one: a. ls tom betty > friends b. cat tom betty > friends c. more tom betty >> friends d. cat tom; cat betty > friends
Ratings Rating:
View Answer View Answer: Here

Questions Question: You have three files in the /home/ben/memos directory called letters, tom, betty. How could you determine each file's type by issuing only one command?
Ratings Rating:
View Answer View Answer: Here

Questions Question: What command should you type to see all the files with an extension of 'mem' listed in reverse alphabetical order in the /home/ben/memos directory.
Ratings Rating:
View Answer View Answer: Here

Questions Question: Which of the following commands will show a list of the files in your home directory including hidden files and the contents of all subdirectories? Choose one: a. ls -c home b. ls -aR /home/username c. ls -aF /home/username d. ls -l /home/username
Ratings Rating:
View Answer View Answer: Here

Previous Page 1 Page 2 Page 3 Page 4 Page 5 [ Page 6] Page 7 Page 8 Page 9 Page 10 Page 11 Page 12 Page 13 Page 14 Page 15 Next


 Sponsors  

Latest 10 Answers
When there is any situation that u should attach a new patch to ur kernel , then download the patch and install it,to make changes to kernel , go to ok prompt and type boot -r, it will update or reconfigure the kernel
Honesty, helpful and reliable
procedure is a set of sql statement ,are combined to gether to perform a specific task or to solve a specifi problem.it does not return value.
leadership is power to influence a group so that the members willingly exert efforts as aspired by the leader.
I have the unique combination of technical skill and the ability to build strong customer relationship. I have the ability to stay focussed in stressfull situation. I would be great addition to your team.
first execute the bc search spec to fetch the data then executes the applet search spec if applet search spec is not match with bc it skips
TCP-Transmission Control Protocol. TCP is Reliable. TCP is Connection oriented. UDP-User Datagram Protoco UDP is Unreliable. UDP is Connectionless.
By default in structure all data member and member function are public,i,e if you not mentation any access specifier. But in case of class By default all data member and member function are private.
Structure is a user defined data type. By default all structure variables are public type and we cann't use access specifier in structure type variable, where as in class we can define objects(variables) under required access specifier type.
variable cost is the cost which is not fixed in nature

Newinterviewquestions.com is a part of Vyom Network. Top



Copyright © 2017, newinterviewquestions.com. All rights reserved Privacy Policy | Terms and Conditions

Page URL: http://www.newinterviewquestions.com/cat/Linux-interview-questions/Default.asp?&iType=83&iDBLoc=100&cachecommand=bypass


Download Yahoo Messenger | Web Hosting | Dedicated Server | Free SMS Domain Registration | Windows Hosting | Linux Hosting | Java Hosting | Virtual Dedicated Server | Dedicated Server | Reseller Web Hosting | Unlimited Windows reseller hosting | Unlimited Linux reseller hosting | Cheap Windows reseller hosting | Cheap Linux reseller hosting | Cheap Windows hosting | Best Windows hosting | Windows hosting Multiple Domains | Unlimited Windows hosting | Compare hosting plans | Cheap Linux hosting | Best Linux hosting | Linux hosting Multiple Domains | Unlimited Linux hosting | Cheap asp.net hosting | Best asp.net hosting | unlimited asp.net hosting | Cheap asp.net reseller hosting | Unlimited asp.net reseller hosting | Java Features | Cheap Java hosting | Best Java hosting | unlimited Java Hosting | Unlimited Linux reseller hosting | Java Hosting Multiple Domains Quick2host Reviews Buy Online Traffic