Question
What happens when you give the following commands if the file named done already exists? $ cp to_do done $ mv to_do done 2.Which command
What happens when you give the following commands if the file named done already exists?
$ cp to_do done
$ mv to_do done
2.Which command can you use to look at the first few lines of a file named status.report? Which command can you use to look at the end of the file?
3.Try giving these two commands:
$ echo cat
$ cat echo
Explain the differences between them.
4.Is each of the following an absolute pathname, a relative pathname, or a simple pathname?
Milk_co
Correspond/business/milk_co
/home/alex
/home/alex/literature/promo
..
letter.0610
5.List the commands you can use to perform these operations:
Make your home directory the working directory
Identify the working directory
6.What does the shell ordinarily do while a command is executing? What should you do if you do not want to wait for a command to finish before running another command?
7.Assume that the following files are in the working directory:
$ ls
intro notesb ref2 section1 section3 section4b
notesa ref1 ref3 section2 section4a sentrev
Give commands for each of the following, using wildcards to express filenames with as few characters as possible.
List all files that begin with section.
List the section1, section2, and section3 files only.
List the intro file only.
List the section1, section3, ref1, and ref3 files.
Step by Step Solution
3.42 Rating (161 Votes )
There are 3 Steps involved in it
Step: 1
1 For the following commands if the file named done already exists a cp todo done This command will ...Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started