Question: Please Someone help me my Unix/Linux II Write a command to display the contents of your current directory; the listing should show the permissions on

Please Someone help me my Unix/Linux II

  1. Write a command to display the contents of your current directory; the listing should show the permissions on each entry and should include any hidden files in the directory:

  1. Write the command to move to the etc directory, which is inside the root directory; use an absolute path in your answer:

  1. What command could you issue to create a new system group called jdoegroup on your system:

  1. What command could you use to install the lynx program on your fedora (red hat) system, assuming you had not yet downloaded any package files needed for the application:

  1. Assume a file called newdata is in the /home directory while you are currently in the /home/myname directory. Using relative paths, write a single command to copy the file newdata to your current directory:

  1. Write the command to display the contents of a file called notes so that you have forward and backward page control and the display shows line numbers on each line:

  1. Write a command to display only the 22nd line of the notes file:

  1. Assume there is a file called errorlog in the /root directory (i.e., a directory called root inside the actual system root directory) and you wish to display the contents, but do not have permission to read the file. You are, however, a member of the admin group. Write a command to display the file (while logged in as your current user):

  1. You wish to set the permissions on a file called prog1 in your current directory to: -rwxr-x-wx. Write the chmod command to do this using octal syntax:

  1. Assuming you have separate files called: file1, program2, and scriptC in your current directory, write a single command to put copies of each of these files in the directory: allfiles which is a subdirectory of the root directory (you have required permissions):

  1. Assume you have two files called PartA and PartB in your current directory, and you wish to combine these files vertically (one after the other without a break) into a file called PartBA such that the contents of file PartB appear first followed by the contents of file PartA. Write the command for this:

  1. After logon, what command do you issue to change to the system admin user (root user):

  1. A file called actionlog is in the /boot directory (you are in your home directory) and you wish to display all lines from that file which have the word linux in them; write the command to do this without changing directories:

  1. Write a command that will put you in your home directory, regardless of where you currently are in the file system:

  1. You wish to add the contents of file notes (in your current directory) to the file allnotes (also in your current directory. Write a command to perform this using redirection of output:

  1. Write a single command to create a new directory tree called mystuff/old which is to be a subdirectory of your current directory (neither of the new directories exist):

  1. Write the command to run top in the background:

  1. After running top in the background, you now type ps and receive the following result:

PID TTY TIME CMD

13698 pts/3 00:00:00 bash

13742 pts/3 00:00:00 top

13744 pts/3 00:00:00 ps

Write the command to terminate the top process (make sure it will terminate, regardless of system status):

  1. Assume that you wish to delete the directory called garbage and all its subdirectories, and that garbage is a subdirectory of your current directory, but you do not know if garbage has any other files in it. Write the command:

  1. If you are in your home directory and you are the owner of a script called UpdateStats (also in your home directory) and you try to run the script but receive a file not found error message, write an alternate command which should work (assuming the file has read, write, and execute permissions):

  1. Assume that you attempt to execute a script called ShowStats but receive the message permission denied. Write an alternate command that should work without actually changing permissions on the file (assume you have read permission on the file):

  1. After logon, write the command to check whether a service called carpald is running and active on your system:

  1. Write the command to display the available network interfaces on your machine including the current MAC and IP addresses:

  1. Using relative paths, type the command to copy the file somethingnew which is in your current directory into your parent directory changing the name to somethingold. After the operation the file somethingnew should no longer exist in your current direction. Also, the command will warn you if you are about to overwrite an existing file

  1. Write the (combined) command such that script adddata will run only if the script datacheck runs successfully before trying to run adddata:

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!