Question

In: Computer Science

Questions: Explain the following Linux commands Show your work examples/outcome. 1. command used to locate /Home/...

Questions: Explain the following Linux commands

Show your work examples/outcome.

1. command used to locate /Home/ Directory…show the outcome

2. command used for October 2020

3. mv command and cat command

4. commands used- move to parent directory?

5. Explain why command is used ls -R?   What is the meaning of -R ?

6. Explain and describe two examples of how the touch command.

7. Explain what is the outcome of the commands ls -C ?

8. Explain command echo. example

9. command used to print contents of a directory, by default it lists contents of current working directory?

10. command q ? Explain

11. Command for copy? What commands will copy hello.txt to dir2 directory?

12. du command - meaning and example

13. Explain what each of the following commands will do

14. date -d “last week”

15. date -d “yesterday”

16. cal 2018

17. cal 08 2020

    cal -3

    date – “1974-01-04”

18. date command? Explain and example

19. command used to make a new directory?

20. free command

Need to answer one by one.

Solutions

Expert Solution

5. Explain why command is used ls -R?   What is the meaning of -R ?

Answer:

The command ls -R is used to ist all files recursively, descending down the directory tree from the given path.

  • The Ls command in Unix is used to get the list of files and directories.
  • ls -R option flag lists directory tree recursively.

Example:

6. Explain and describe two examples of how the touch command.

The touch command is primarily used to change file timestamps, but if the file (whose name is passed as an argument) doesn't exist, then the tool creates it.

Here is an example of how you create a file with touch or multiple files with touch.

Here is an example of chaning time stamps

7. Explain what is the outcome of the commands ls -C ?

Displays files in a columnar format

8. Explain command echo. example

echo is used to display a line of text. It is a very simple command which can be used in terminals and scripts.

Usage:

To print string "Hi, echo is executing" on console

echo "Hi, echo is executing"

ote: Since we have given limited time to solve the question, So I have solved 5,6,7,8, please upload remaining separately.

If you have any doubts, leave a comment below before rating. I'll be happy to assist you further.

Do UPVOTE this as I have put a lot of EFFORT in answering this question. It really helps me.


Related Solutions

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...
Linux Ubuntu 1. Use the appropriate commands to locate the device file used by the device,...
Linux Ubuntu 1. Use the appropriate commands to locate the device file used by the device, mount the filesystem to a directory of your choice, and check the filesystem for errors. 2. Finally, add a line to /etc/fstab to ensure that the filesystem can be easily mounted in the future (this line should not automount the filesystem at boot time). You have to document all your steps and provide the screenshot of your work process.
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'
Operating Systems class Complete the following work with Linux commands and submit the screenshot. 1.Install a...
Operating Systems class Complete the following work with Linux commands and submit the screenshot. 1.Install a virtual machine with Lubuntu 2.Log in and display the content of your home directory 3.Create a directory called homework under your home directory and navigate to homework directory 4.Create a file called newfile under homework directory (this can be done by Leafpad) 5.Copy the file newfile to tempfile, then rename tempfile to myfile and delete newfile 6.Display the content of myfile
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...
Show your work, the formulas used, and the substitutions to answer the questions about the following...
Show your work, the formulas used, and the substitutions to answer the questions about the following data: Can your high school GPA predict your college GPA? To try to answer this, the following data were collected: High School GPA:      1.72     3.51     2.45     2.85     2.84     3.46     1.97            3.47 College GPA:             2.61     3.66     3.25     3.23     3.46     3.07     2.88            3.16 Create a scatter plot of the data Find the equation of the regression line Calculate the correlation coefficient. Is there a significant correlation...
Ubuntu Linux HW2: 1. Give one line of the Linux command to see your (your login...
Ubuntu Linux HW2: 1. Give one line of the Linux command to see your (your login ID) credential data from the passwd file. Use a pipe and grep command. 2. Give one line of the Linux command to calculate the following and save it in the hex to a file calcOut. Use bc and <<<. 3+2*4 Submit Screenshots HW3: Permission Show the result clearly after each of the following commands are executed. 1. Create a subdirectory, “HW3”. Write the Linux...
How this command used for and provide examples for each one. Commands: 1-file 2-find 3-pwd 4-ln...
How this command used for and provide examples for each one. Commands: 1-file 2-find 3-pwd 4-ln 5-stat 6- cmp, comm, and diff 7-md5sum 8-du 9-gzip 10-gunzip 11-bzip2, and bunzip 12-cpio 13-tar 14-wc 15-vi editor
For each questions, please show me all your work and explain the answer. 1. A rocket...
For each questions, please show me all your work and explain the answer. 1. A rocket is moving at 1/4 c relative to Earth. At the center of this rocket, a light source suddenly flashes. To an observer at rest in the rocket a. the light pulse will reach the front of the rocket at the same instant that it reaches the back of the rocket. b. the light pulse will reach the front of the rocket before it reaches...
Answer the following questions and use Excel or this document to show your work. 1. Consider...
Answer the following questions and use Excel or this document to show your work. 1. Consider the following results for two samples randomly taken from two normal populations with equal variances. Sample I Sample II Sample Size 28 35 Sample Mean 48 44 Population Standard Deviation 9 10 a. Develop a 95% confidence interval for the difference between the two population means. b. Is there conclusive evidence that one population has a larger mean? Explain.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT