Question: linux command: 1- Create a directory under you home directory called lab2. 2- Under lab2 create 8 files called out1.tmp, out2.tmp, out3.tmp, out34.tmp, four.tmp, one.txt,
linux command:
1- Create a directory under you home directory called lab2. 2- Under lab2 create 8 files called out1.tmp, out2.tmp, out3.tmp, out34.tmp, four.tmp, one.txt, two.txt and three.txt. 3- Use wildcards to only view file names in this directory that ends with .tmp extension. 4- Use wildcards to only view file names that start with the letter o.
5- Use wildcards to only view file names that start with the letter o but have .tmp extension. 6- Write the command to view files that has out followed by one digit such as out1.tmp, out2.tmp, out3.tmp and not out34.tmp (use the ? mark). 7- Write the command to view the file names out1.tmp and out2.tmp only (in other words use the range of values). 8- Use vi command to edit out2.tmp to have 3 short sentences at three different lines. Use vi to edit out3.tmp to have 4 short sentences at four different lines. 9- Use the wc (word count) command and type the following: $ wc *[2-3].tmp What does the above command do? 10- Use wc command to find out only the numbers of lines int out2.tmp 12- Use relative path names to copy h1 file to ex1 directory. Note that you should use relative path names for both source and destinations. 13- Use absolute pathnames to copy h2 to ex2 directory. Note that you should use absolute pathnames for both source and destination.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
