Question
>Suppose you are in the directory a/b/c. d is yet another subdirectory of a. Give a command that will move you to the directory a/d
>Suppose you are in the directory a/b/c. d is yet another subdirectory of a. Give a command that will move you to the directory a/d WITHOUT (!!!) using names b and c.
>Suppose a shell command with the name identical to some built-in command (for example, echo) resides in the directory /bin. How will you use this command (making sure that the built-in version will not be called instead)?
>Give a command that lists (using long option) attributes of the parent directory.
>Give (smallest) patterns representing a) the set of strings of at least 4 characters beginning with a letter and ending with a letter; b) the set of all strings that have at least 3 characters whose last character is not a numeric digit.
>Write a sequence of cut and paste commands (saving the result of each command in a file) that inverts every name in the file shortlist (found in the textbook and in the directory CS615/ch09) and places a coma after the last name (for example, bill johnson becomes johnson, bill).
>Give a command that creates a numbered list of the departments listed in the shortlist (found in the directory CS615/ch09). Use : as the delimiter (between the numbers and departments).
>Create a command line (in the worst case, a sequence of commands) that lists the three largest files in the current directory (names and sizes). You can assume that the directory does not contain subdirectories just files.
>Give a command line that selects users logged in more than once. (Hint: use command uniq with necessary option(s) as a part of your solution)
Step by Step Solution
There are 3 Steps involved in it
Step: 1
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