Question

Unix/Linux

Part 1. Multiple choice 1. In the command ls /tmp, the ls is the__ A) argument B) option C) utility D) file E) kernel 2. In the command mv -i fileAA fileBB A) there are three arguments B) there is one option C) there is one utility D) If fileBB exists it will not be overwritten with confirmation E) All of the above 3. To add the output of date to the end of the file junk, we enter A) junk date B) date | junk C) date> junk D) date >> junk E) junk > date F) junk >> date

0 0
Add a comment Improve this question Transcribed image text
Answer #1

1. Correct Option is 'D'.

explanation: In Linux we use 'ls' command to view the list of all the file in the current directory. So when ever there is question of using ls command , it defenetly used to access the files.

Note: 'ls' is a file containing the program to execute the 'ls' command with in the Linux terminal.

2. Correct option is 'D'

  explanation: the command 'mv' used to move files and directories . the command 'mv -i' will be used when to get a interactive prompt(which means a confirmation ask you to get confirmed) before over writing the file.

and the command 'mv -f' used to forcibly overwrite the destination file with out raisng a prompt(which means with out a confirmation message).

3. option is "D"

explanation: '>>' used to append the Command data to an external file.

Syntax: commandXYZ >> abc.txt

in the question you are supposed to add the date to the file junk. so the linux command will be

'date >> junk'

and '>' used to just to redirect the output to a file.

and 'I' output of the first command acts as input to the second command.

Add a comment
Know the answer?
Add Answer to:
Unix/Linux Part 1. Multiple choice 1. In the command ls /tmp, the ls is the__ A)...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Some multiple choice questions of Computer Science: Linux command; Actually I can google it but the...

    Some multiple choice questions of Computer Science: Linux command; Actually I can google it but the choice here is a little..unclear. So I can't make sure..Thank you! 1:What does the Linux command “cat” do? a. copy the contents of a file to the screen b. count the number of characters in a file c. create a Linux catalog d. open up an edit session allowing you to modify a file 2:Which of the following Linux commands is best for getting...

  • QUESTION 1 What will be the output of following Unix command: find / -name ‘*’ A....

    QUESTION 1 What will be the output of following Unix command: find / -name ‘*’ A. List all files and directories recursively starting from / B. List a file names * in / C. List all files in / directory D. List all files and directories in / directory QUESTION 2 Which command is used to extract a column/field from a text file / input. A. paste B. get C. cut D. tar QUESTION 3 Which command creates an empty...

  • Using Unix processes Submit a README file that lists the files you have submitted along with...

    Using Unix processes Submit a README file that lists the files you have submitted along with a one sentence explanation. Call it Prj1README. MakeCopy.c : Write a C program that makes a new copy of an existing file using system calls for file manipulation. The names of the two files and copy block sizes are to be specified as command line arguments. Open the source file in read only mode and destination file in read/write mode. ForkCopy.c : Write a...

  • 19. UNIX/Linux normally include two editors: vi and (choose the single best answer). 20. You can...

    19. UNIX/Linux normally include two editors: vi and (choose the single best answer). 20. You can use thecommand to create empty a create b. make c touch d mu 21. Which command can be used to leave vi temporarily to access the command line? 22 If you execute the contents of filel are sorted and the results are stored in file2. a sort file1 -ofile2 b. sort file1 >file2 c sort filel -d file2 d sort filel filez field or...

  • Unix/Linux The purpose of this lab is to practice the commands to manage and organize files...

    Unix/Linux The purpose of this lab is to practice the commands to manage and organize files and directories: How would one go about this? Thanks. Task 1: Preliminaries: 1) If you have not already done so, create a directory called bin under your HOME directory. 2) If you have not already made a copy (using ftp) of the file called famous.dat from the Assignment#1, do that now. 3) Make bin the active/working directory. Task 2: Perform all of the following...

  • A filename con comprise multiple embedded dots (e.g., a.b.c.d.e). True False A device file is not...

    A filename con comprise multiple embedded dots (e.g., a.b.c.d.e). True False A device file is not really a stream of characters and doesn't contain anything at all. True False Relative pathnames begin with the root directory. True False Running the ls -a command uniquely identifies directories and binary executables. True False What is the result of running mkdir -p share/man/cat1 from the command line? a. It creates the directory share. b. It creates the directory share/man. c. It creates the...

  • USING Unix/Linux shell !!!: 1) Write a script (project2.sh) that will take information from a file,...

    USING Unix/Linux shell !!!: 1) Write a script (project2.sh) that will take information from a file, and print (user’s choice of printers) identical form letters to each recipient. Either E197, E-199, E-194 printers or to project2.output. Prompt the user for their choice. 2) The script and output file are due: per Moodle timeline. Please upload your fully functioning script (project2.sh) your data file (project2.input) and your output file (project2.output) into Moodle. 3) Requirements of the script. a. You can use...

  • Question 2: Manipulate directory structures in Unix/Linux (24 marks – 4 marks each) Use the OS...

    Question 2: Manipulate directory structures in Unix/Linux (24 marks – 4 marks each) Use the OS that you set up from Question 1. Assume you are started at your home directory. a) Perform a command that displays the absolute path of your home directory (your current location). b) Create a new directory inside your home directory and name it “Assignment-Two” c) Without moving into the directory you just made (staying in your home directory), create three new directories using one...

  • auditing Part Two: Multiple Choice Questions: (2.5 marks/ question) 1. To test the existence assertion for...

    auditing Part Two: Multiple Choice Questions: (2.5 marks/ question) 1. To test the existence assertion for recorded receivables, an auditor would select a sample from the A) Sales orders file. B) Customer purchase orders C) Accounts receivable subsidiary ledger D) Shipping documents (bill of lading) file. 2. When control risk for the existence assertion is assessed at a high level, which of the Gallerine is a likely effect with respect to the auditors' confirmation of receivables? A) The account balances...

  • I have included what I need to do for part b, and what I have so...

    I have included what I need to do for part b, and what I have so far. I 2.2 Part B Write a default version of program to report the behavior of the Linux kernel by inspecting kernel state. The program should print the following values to the user screen or console: CPU type and model Kernel version Amount of time since the system was last booted, in thefomdmm:5s (for example, 3 days 13 hours 46 minutes 32 seconds would...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT