a) At a terminal prompt type touch sample1
sample2 and hit enter. This will create two files in your
current location.
b) Type ls -l sample1 sample2 sample3 and hit enter. What is
shown?
c) Type ls -l sample1 sample2 > file and hit enter. What
is shown?
d) Type cat file and hit enter. What are the contents of the
file?
e) Type touch sample3.
f) Type ls -l sample1 sample2 sample3 2> file and hit
enter. What is shown?
g) Type cat file and hit enter. What are the contents of the
file now?
h) Type ls -l sample1 sample2 sample3 > file2> file2
and hit enter. What is shown?
i) Type cat file and hit enter. What are the contents of the
file now?
j) Type cat file2 and hit enter. What are the contents of
the file now?
k) Type date >> file and hit enter. What are the
contents of the file now?
B) This command will display information about sample1 sample2 (permission on file, memory, owner, group of owners, file size, and file directory) and file does not exist error message for sample3.
c) This command will copy information about sample1 sample2(permission on file, memory, owner, group of owners, file size, and file directory) into file.
d) This commannd will display content of file.
e) This command will create a new file with the name sample3.
f)This command will display information about sample1 sample2, and sample 3(permission on file, memory, owner, group of owners, file size, and file directory) and will redirect error.
g) This command will display content of file.
h)This command will copy information about sample1 sample2, and sample 3(permission on file, memory, owner, group of owners, file size, and file directory) into file2.
i)This command will display content of file.
j)This command will display content of file2.
k)This command will added date in content of file.
Get Answers For Free
Most questions answered within 1 hours.