Question: In regards to UNIX 2.) If a command's executable file resides in a directory that is not defined in your PATH environment variable, how can
In regards to UNIX
2.) If a command's executable file resides in a directory that is not defined in your PATH environment variable, how can you still execute it? Provide an example.
4.) Write commands to: a. list the contents of the current directory in reversed alphabetic order, from z to a, in long format b. list the contents of the directory but send the output of the listing to a file named dirlist.txt. c. count the number of files in a directory (but not including the . and .. files)
5.) Write a command to compare the contents of files named list1 and list2 and show only the lines they have in common.
6.) Will the command cp tmp1 tmp2 work if: a. tmp1 is an ordinary file and tmp2 is a directory? b. Both tmp1 and tmp2 are directories?
7.) Can you always delete a file with the permissions set to 777? Explain.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
