Question

In: Computer Science

QUESTION 1 Match the following LINUX/UNIX commands with what they do. du    whereis users who...

QUESTION 1

Match the following LINUX/UNIX commands with what they do.

du

  

whereis

users

who am i

A.

display a compact list of users currently logged in

B.

locate the binary, source, and manual page files for a command

C.

summarize disk usage

D.

who am i currently logged in as on the Linux server.

QUESTION 2

What rm command option (flag) would you use to remove a file that begins with a - (hyphen)?

-f

-p

--    (read this as dash dash)

-i

QUESTION 3

Execute the finger command as the following: finger fveglian

The output will contain the following line of text: Project: I have three projects to complete by the end of the semester.

From what file in my home directory is the finger command getting that line of text?
Provide only the correct file name.

QUESTION 4

There is a file called lynx in my home directory. It has an i-node number of 16161.

There are two file entries  and  that are hard linked to lynx and have the same i-node number.

What are the two files by name?

QUESTION 5

Reference the man page for the who command.

Which flags (options) when used with the who command will generate the following output?

The output will resemble the following. The date and time may be different.

         system boot 2015-05-16 09:04
         run-level 2 2015-05-16 09:04

Solutions

Expert Solution

Question 1:

ANS:

Here I have arranged the usage of commands in appropiate way.


Command Purpose

du summarize disk usage

whereis locate the binary, source, and manual page files for a command

users display a compact list of users currently logged in.

who am i who am i currently logged in as on the Linux server.

Question 2:

rm command is used to remove each specified FILE.
We are using diffrent options for different purposes.

As per your question,We need to use '_f' to remove that file forcebly and without prompting anything.

So '-f 'is the correct answer.


Question5:

The who command used to get the information about all users who are currently logged in.


Syntax: who [ OPTION ]... [ FILE ].

Options:


-a dislpays all users accessing
-b Display the time of the last system boot.
-d Display dead processes.
-h Print a line of column headings.
--ips Print IP addresses instead of hostnames.
--lookup Attempt to canonicalize hostnames via DNS
-p Print active processes spawned by init.
-q Displays all login names, and a count of all logged-on users.


And we also have few more options.

By using '-b' option we can get last system time boot.


So that the flag is '-b'


Related Solutions

Unix/Linux Turn in the following commands and any output from the commands. 1) ll to show the original 3 files
Unix/LinuxTurn in the following commands and any output from the commands.1) ll to show the original 3 files2) run the tar command to stuff three files3) ll to show the 'tar archive'4) mkdir newdir to create a new directory to unstuff the 'tar archive'
Unix / Linux 31. Given the first two commands, what is the expected output for the...
Unix / Linux 31. Given the first two commands, what is the expected output for the third command? (single quotes) $ echo * a b c $ x=* $ echo '$x' 32. Given the first two commands, what is the expected output for the third command? (Single quotes inside of double quotes) $ echo * a b c $ x=* $ echo "'$x'" 33. Given the first two commands, what is the expected output for the third command? (double quotes...
Objective: Practice common UNIX commands. Procedure: The following list of Unix commands are given for self-learning....
Objective: Practice common UNIX commands. Procedure: The following list of Unix commands are given for self-learning. Use 'whatis' or 'man' command to find out about each command. Your document should include the description or screen shots of the output from each of the command. Commands: df du gzip file history wget Changing access rights: chmod u+x Dir1.0             adds execute permission for the owner chmod go-w file1               removes write permission for the group and others chmod ugo=rw testfile      sets...
What are control structures in Linux/Unix?
What are control structures in Linux/Unix?
Use Kali Linux Commands to show me the following: 1. Who are you? 2. Change directory...
Use Kali Linux Commands to show me the following: 1. Who are you? 2. Change directory to Downloads 3. Make a new directory 4. Make a new text file under your name (Ghada.txt) 5. Write a paragraph about Cyber security (4 to 5 sentences) >>simply open the file and write inside it 6. Change the permission to be 764 7. Open the file but with a cyber security match Show me each and every step with figure b. Enter into...
a) Observe the following Linux commands and work out what each command does: 1) $ ls...
a) Observe the following Linux commands and work out what each command does: 1) $ ls –al 2) $ /etc/profile 3) $ chmod 200 final_assignment.txt b) Consider a scenario where Bob has downloaded his messages to the local machine with an access of POP3, he can create mail folders and move the downloaded messages into the folders. Bob can then delete messages, move messages across folders, and search for messages (by sender name or subject). But this paradigm—namely, folders and...
Task 1: Getting familiar with Unix commands Questions: How do you remove a directory and all...
Task 1: Getting familiar with Unix commands Questions: How do you remove a directory and all of its contents, including any subdirectories and files, without using rmdir repeatedly?         [5 Points] Go to your home directory (i.e. /home/) and enter the following command: ls -ali Explain the output. You need to clearly what each column specifies, what are the values in each column means. Also explain how it is different from: ls -li    [5 Points] How will you copy directory (not...
Guide to UNIX Using Linux (4th Edition) 1.What is sed? A Stream editor is used to...
Guide to UNIX Using Linux (4th Edition) 1.What is sed? A Stream editor is used to perform basic transformations on text read from a file or a pipe. The result is sent to standard output. The syntax for the sed command has no output file specification, but results can be saved to a file using output redirection. The editor does not modify the original input. What distinguishes sed from other editors, such as vi and ed, is its ability to...
what is the major change of Unix, Linux and Android. what there evelution ? what they occor? discuss this
what is the major change of Unix, Linux and Android. what there evelution ? what they occor? discuss this
Linux-Practise1: Run the following commands (Print working directory) pwd. What is the output of the above...
Linux-Practise1: Run the following commands (Print working directory) pwd. What is the output of the above command Create a file named Linux1 nano Linux1 Type the following in the file Hello world Save the file Create a copy of the file cp Linux1 Linux2 view the listing of the files in the directory            ls What is the output of the above command rename the file mv Linux2 Linux3 view the listing of the files in the directory            ls...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT