Question

In: Computer Science

Please execute the appropriate Unix command to perform the action described. 1 - Put your login...

Please execute the appropriate Unix command to perform the action described.

1 - Put your login name in the file session03_hw.

2 - Put the date in mm/dd/yy format in the file session03_hw.

3 - Put the abbreviated weekday name in the file session03_hw.

4 - Put the time in hh:mm format in the file session03_hw.

5 - Use the command for a short listing with the option to list entries by columns.
List files that start with mno and add the output to the file session03_hw.

6 - Use the command for a short listing of all files that have the last character as number 3 and
add the output to the file session03_hw.

7 - Use the command for a short listing of all files that have the second to last character as the letter i
and add the output to the file session03_hw.

8 - Concatenate the files that have the second to last character in the file name in the list a c e g i k and
the last character as a 1. Add the output to the file session03_hw.

9 - I want you to use the man command to find a command to determine a file type.
The man command with the -k keyword option will display all commands. I want you to display only
commands in chapter 1 of the Unix man pages. Add the output of what is displayed to the
file session03_hw.

10 - From the list of commands that is displayed from the step above, add only the line of the
command you think is the correct command to the file session03_hw.

11 - Concatenate the files mno.d1, mno.a7 and mno.b6. Add the output of any error messages to
the file session03_hw

12 - Create a file called theend with the words "The End" in the file. Add the contents of the
file theend to the file session03_hw.

13 - Use the command for a short listing with the option to list entries by columns of all the files in
your directory and add the output to session03_hw.

3. Look over the file session03_hw and check that it looks like what you would expect based on the
commands you have executed. For each question above, you should see your answer in the file session03_hw. If you do not see all your answers, you need to either redo the assignment or ask a question.

Solutions

Expert Solution

Answer 1) whoami > session03_hw
Answer 2) date +"%m-%d-%y" >> session03_hw
Answer 3) date +"%A" >> session03_hw
Answer 4) date +"%H:%M" >> session03_hw

We are allowed to do only 4 exercise out of any given.

if you have any doubt then please ask me without any hesitation in the comment section below , if you like my answer then please thumbs up for the answer , before giving thumbs down please discuss the question it may possible that we may understand the question different way and we can edit and change the answers if you argue, thanks :)


Related Solutions

Using sed unix / linux command how would I execute this: Move the first 2 characters...
Using sed unix / linux command how would I execute this: Move the first 2 characters on each line to the end of the line
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...
please use linux or unix to complete Diff command The diff command displays differences between two...
please use linux or unix to complete Diff command The diff command displays differences between two files on a line-by-line basis. It displays the differences as instructions that you can use to edit one of the files ( using the vi editor) to make it the same as the other. When you use diff, it produces a series of lines containing Append (a), Delete (d), and Change (c) instructions. Each of these lines is followed by the lines from the...
Unix command lines. A) Assume that your current working directory is NOT the same as your...
Unix command lines. A) Assume that your current working directory is NOT the same as your home directory. Print all file and subdirectory names of your home directory into a file named file2. B) Copy the text from line 11 to line 20 of a given file input.txt and append the copied text at the end of the file output.txt. (Assume that the file input.txt contains more than 20 lines of text contents) C) Count and display the total number...
unix question please write a program and then show how to use top command that shows...
unix question please write a program and then show how to use top command that shows the zombie process, give snapshot of top command that shows the zombie process Write a very simple program that will show the possibility of having zombie processes. Write a program named zombie.c The main process will create a child. The child prints something like: “I am the child with pid ….. and my parent has ppid ….” Next, the child will sleep for 1...
Part I– Check your file system Step 1: Execute the ls /dev/sd* command to see the...
Part I– Check your file system Step 1: Execute the ls /dev/sd* command to see the current hard disk devices. Step 2. Execute the fdisk -l command to list the current hard disk partitions Step 3. Execute the parted -l command to list the current hard disk partition table. Part II– Create a new virtual disk Step 1. In the Oracle VM VirtualBox Manager program, create a new virtual hard disk with the size of 200 MB, and name it...
c++Language material choose the correct answer please: 1-lineto(x,y); after execute this command then x and y...
c++Language material choose the correct answer please: 1-lineto(x,y); after execute this command then x and y become the new reference point False True 2-The declaration that is needed for communication between the file and the program is : pointer binary file text file function 3-the largest circle that can be drawn and seen on the screen is circle(getmaxx()/2,getmaxy()/2,getmaxy()/2) circle(getmaxx()/2,getmaxy()/2,getmaxy()) circle(getmaxx()/2,getmaxy()/2,320) no one from other choices 4-If we want to open file "data.txt" to erase it and writing data and read...
1. call to action is most appropriate when you want to: A . get your Listener...
1. call to action is most appropriate when you want to: A . get your Listener attention. B. establish satisfaction for your Listeners. C. create visualization for your Listeners D. identify what you want your Listener to do 2. which of the following organization pattern is recommended for your persuasive speech? A. topical. B. chronological. C. problem solution benefits. D. causes and effect
Geography Single choice. Please put the right choice in the corresponding blank. 1. ______’s rings described...
Geography Single choice. Please put the right choice in the corresponding blank. 1. ______’s rings described the location of agriculture under certain consumptions. A. Thuenen B. Alfred Weber C. August Loesch D. Paul Krugman 2. ______studied the industry location from the perspective of least cost. A. von Thuenen B. Alfred Weber C. August Loesch D. Paul Krugman 3. The port ______ is in the eastern Africa. A. Dakar B. Luanda C. Dar es Salaam D. Lagos 4. The port ______...
Please include a snip of your Minitab command line as well as the plots in your...
Please include a snip of your Minitab command line as well as the plots in your answers.   Use Minitab to generate 200 normal random numbers with mean 5, variance 2. Then create a QQ-plot (normal probability plot) of these numbers and comment on the fit. b.Use Minitab to generate 200 exponential random numbers with λ = 5. Again, create a QQ-plot (normal probability plot) of these numbers and comment on the fit
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT