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?
What are the UNIX commands for each of these steps? 1. Copy all of the files...
What are the UNIX commands for each of these steps? 1. Copy all of the files in your Files directory to the Backup directory. 2. Create an ITE130 directory in the Classes Directory 3. Move all the ITE 130 files from the backup directory to the ITE130 directory. 4. Redirect echo step 19 to mark this step in the lab3.txt file 5. Display all of the directories and sub-directories including files so I can verify you completed all the above...
What are the UNIX commands for each of these steps? 1. Delete all the files in...
What are the UNIX commands for each of these steps? 1. Delete all the files in the Classes and Backup directories only. 2. Redirect echo step 23 to mark this step in the lab3.txt file 3. Display all of the directories and sub-directories including files so I can verify you completed all the steps correctly. 4. Repeat the above step and redirect the output to the file lab3.txt without erasing what is already in it! 5. Redirect echo step 26...
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...
What would these commands look like in Kali Linux? In Kali Linux: a) Create a user...
What would these commands look like in Kali Linux? In Kali Linux: a) Create a user (username= YOUR-FIRSTNAME). b) Create a file (filename=test) and use chmod command to add the write permission for Others. c) Use setfacl to remove write permission to YOUR-FIRSTNAME user. Use getfacl to check the file's permissions. d) Remove YOUR-FIRSTNAME user. Deliverable(Screenshots from each section if possible please)
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...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT