Question

What are the UNIX commands for each of these steps? 1. Copy all the files from...

What are the UNIX commands for each of these steps?

1. Copy all the files from the Files directory in my user account (user305) to your Files directory
2. Redirect echo step 11 to mark this step in the lab3.txt file
3. Display the directories and sub-directories including files so I can verify all the files were copied.
4. Redirect the above step to the lab3.txt file
5.. Copy only the following files from your Files directory to the Classes directory:
Budget.doc, Cargo.doc, Sales.xls
6. Copy only the following files from your Files directory to the ITN106 directory:
Newpump.jpg, Oldpump.jpg

Homework Answers

Answer #1

1. $ cp -r user305 Files

:- copy a directory and all its contents to Files.

2. $ echo "step 11 \"lab3.txt\" "

:- Redirect echo step 11 to mark this step in the lab3.txt file.

3. $ ls /user305/Files

:- Display the directories and sub-directories including files.

4.  $ ls /lab3.txt

:- display files in lab3.text.

5. $ cp Files_Budget.doc Files_Cargo.doc Files_Sales.xls / Classes

Copy only the following files from your Files directory to the Classes directory:
Budget.doc, Cargo.doc, Sales.xls

6. cp*.jpg /ITN106 [If only these two jpg files are present in the cureent files directory]

or $ cp Newpump.jpg Oldpump.jpg / ITN106

Copy only the following files from your Files directory to the ITN106 directory:
Newpump.jpg, Oldpump.jpg

:-

Know the answer?
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
Similar Questions
Write UNIX commands to perform the following tasks. Each task must use exactly one line of...
Write UNIX commands to perform the following tasks. Each task must use exactly one line of command. Unless stated otherwise, all files are assumed to be at your current working directory. a) (10 points) Print your current working directory into a file named file1 b) (10 points) 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. c) (15 points) Copy...
You are to create a hard link to one of your existing files on someone else's...
You are to create a hard link to one of your existing files on someone else's directory (or vice versa). In other words, you know that you can link a file within your own directories, but you can also have a link to one of your files on other areas of the unix system as long as you have permissions to write to that directory (in this case, your partner). Create a subdirectory called temp where you can place this...
1. By convention, how are configuration files separated from regular files? (NOTE: A practical effect of...
1. By convention, how are configuration files separated from regular files? (NOTE: A practical effect of the separation is that they are not displayed by the default version of the ls command)                         a. the prefix "rc" (rc.filename)               c. the extension .cfig                         b. a dot (.) at the beginning                    d. by having the SUID bit set 2. The IP address which is reserved for local loopback (equivalent to "localhost") is:                         a. 255.255.255.0                                   c. 192.168.70.1...
UNIX COMMANDS Task B Create a one-line command, using the famous.dat file, to add the word...
UNIX COMMANDS Task B Create a one-line command, using the famous.dat file, to add the word " STREET" to the address, for all who live on 2nd or 3rd. For example: "2nd" becomes "2nd STREET" and "3rd" becomes "3rd STREET". Display only the first 9 lines. Hint: Use 2 sed statements with pipes. Task C Display all lines in famous.dat that end in 0 or 1, and have a 1 in the 3rd from the last column. For example lines...
Description: You will develop a small "text-based shell utility" ("ts") for Unix (or similar OS). A...
Description: You will develop a small "text-based shell utility" ("ts") for Unix (or similar OS). A common complaint of the most-used UNIX (text) shells (Bourne, Korn, C) is that it is difficult to remember (long) file names, and type "long" command names. A "menu" type shell allows a user to "pick" an item (file or command)from a "menu". You will display a simple menu, the following is a suggestion (you may change format): Current Working Dir: /home/os.progs/Me It is now:...
Lab of operating system: please use the linux server please so all the commands used and...
Lab of operating system: please use the linux server please so all the commands used and the output PROBLEM 1: Create a file and name it f1 • Cerate a directory and name it d1 • Move f1 to d1 • Create a directory and name it d2 • Move d1 to d2 • Check if d1 is inside d2 • Check if f1 is inside d1 • While your (Current Working Directory) CWD is d1, move back f1 to...
Part 1 Write a program where a child is created to execute command that tells you...
Part 1 Write a program where a child is created to execute command that tells you the date and time in Unix. Use ​execl(...)​. Note: you need to specify the full path of the file name that gives you date and time information. Announce the successful forking of child process by displaying its PID. Part 2 Write a program where a child is created to execute a command that shows all files (including hidden files) in a directory with information...
please use linux/unix command terminal to complete, step 1 1-create a new directory named by inlab4...
please use linux/unix command terminal to complete, step 1 1-create a new directory named by inlab4 enter directory inlab4 create a new file named by reverse.c with the following contents and then close the file: /*reverse.c */ #include <stdio.h> reverse(char *before, char *after); main() { char str[100]; /*Buffer to hold reversed string */ reverse("cat", str); /*Reverse the string "cat" */ printf("reverse(\"cat\")=%s\n", str); /*Display result */ reverse("noon", str); /*Reverse the string "noon" */ printf("reverse(\"noon\")=%s\n", str); /*Display result */ } reverse(char *before,...
Using a Linux terminal, write a script, called UnixHistory.sh, which will generate an abbreviated "tree" of...
Using a Linux terminal, write a script, called UnixHistory.sh, which will generate an abbreviated "tree" of the Unix and Unix like operating system ancestry. The data source, as always, can be found on Wikipedia: https://en.wikipedia.org/wiki/File:Unix_history.svg The Unix history begins with a directory named ResearchUnix that has two children: BSD and Commercial. BSD has two children FreeBSD and NextStep, NextStep has a single child directory: MacOSX. Commercial has one sub-directory named Solaris NOTE all the elements mentioned above are directories, created...
PLEASE DO QUICK LINUX ASSIGNMENT PLEASE ILL THUMBS UP You need to paste the command and...
PLEASE DO QUICK LINUX ASSIGNMENT PLEASE ILL THUMBS UP You need to paste the command and the output in a word document and submit it. Part1: 1. Log in to Linux using your user account name and password. 2. If you logged in using a graphical login screen, open a terminal window by clicking on the icon in the lower left corner of the desktop to open the main menu, then selecting System Tools, then Terminal. A terminal window opens....