Question

Write the Linux command that will add the current directory to the beginning of the PATH...

Write the Linux command that will add the current directory to the beginning of the PATH environment variable.

Linux Command:

Write the command that will create a compressed archive of your Chap12 directory. Name the archive Chap12Backup.tgz

Linux Command:

0 0
Add a comment Improve this question Transcribed image text
Answer #1

Write the Linux command that will add the current directory to the beginning of the PATH environment variable.

Linux Command:

export PATH=$PATH:$(pwd)

So for example , if pwd is /home/me/tmp, PATH will be set to $PATH:/home/me/tmp

(here, pwd is: print working directory.)

Write the command that will create a compressed archive of your Chap12 directory. Name the archive Chap12Backup.tgz

Linux Command:

 tar cvzf Chap12Backup.tgz

Additional information:

  1. c – Creates a new .tar archive file.
  2. v – Verbosely show the .tar file progress.
  3. f – File name type of the archive file
  4. To create a compressed gzip archive file we use the option as z.
Add a comment
Know the answer?
Add Answer to:
Write the Linux command that will add the current directory to the beginning of the PATH...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • This is done in Linux terminal. Modify the .bashrc file using command line which would add...

    This is done in Linux terminal. Modify the .bashrc file using command line which would add the following functionality to your shell upon opening a new terminal: 1. Alias called “fc” (short for “folder contents) invoking the command “ls -lah”B. Welcome message “This is demo number 7” C. Variable “semester” being equal to “Winter 2020” and print the value on screen 2. Create any directory of your choice and add it to PATH variable. 3. Show an example of local...

  • I need help with the following Linux bash assignment: Display the value of all environment variables...

    I need help with the following Linux bash assignment: Display the value of all environment variables to the screen. Add a temporary environment variable called Semester with a value of Spring to your currently running shell only. Modify your .bashrc file to create an environment variable called CLASS with a value of "CIS 220" that is available to all processes. Modify your .bashrc file to add $HOME/scripts to your path without removing any other items from your path. Modify your...

  • Manipulate directory structures in Unix/Linux Use the OS that you set up from Question 1. Assume...

    Manipulate directory structures in Unix/Linux Use the OS that you set up from Question 1. Assume you are started at your home directory. Perform a command that displays the absolute path of your home directory (your current location). Create a new directory inside your home directory and name it “Assignment-3” Without moving into the directory you just made (staying in your home directory), create two new directories using one command inside of the Assignment-3 directory, and name them Test1 and...

  • Write a linux command that will add a "#" character to the start of every line...

    Write a linux command that will add a "#" character to the start of every line that does not already start with a "#" character. Write a linux command that will append all lines of the /etc/passwd file that contain the word "STUDENT" to the end of the file. Write a linux command that will move the last word of each line to the start of the line. Write a linux command that will add the line number to the...

  • Linux command 1. Use the command to record size of all directory present on the desktop...

    Linux command 1. Use the command to record size of all directory present on the desktop of your Linux operating System? 2. Use a command line to retrieve following information on your Ubuntu Linux operating system?

  • Question 2: Manipulate directory structures in Unix/Linux (24 marks – 4 marks each) Use the OS...

    Question 2: Manipulate directory structures in Unix/Linux (24 marks – 4 marks each) Use the OS that you set up from Question 1. Assume you are started at your home directory. a) Perform a command that displays the absolute path of your home directory (your current location). b) Create a new directory inside your home directory and name it “Assignment-Two” c) Without moving into the directory you just made (staying in your home directory), create three new directories using one...

  • Linux Q4 (15pt): Write a script that describe every file or directory of current directory. Example...

    Linux Q4 (15pt): Write a script that describe every file or directory of current directory. Example output (input in bold): Document is directory Example1 is file Desktop is directory … …

  • please help me to write in PuTTY in which command need to use Create a directory...

    please help me to write in PuTTY in which command need to use Create a directory called CS332 Change to the CS332 directory Create a new directory inside CS332 and name it Lab1 Change to the Lab1 directory Find the current directory using the command “pwd” Create a new file using the touch command by entering “touch file1” List the contents of the Lab1 directory Rename file to new_file1 List the contents of the Lab1 directory Change to the CS332...

  • LINUX 140U Create a file named script1.sh that contains a bash script that: Accepts NO command...

    LINUX 140U Create a file named script1.sh that contains a bash script that: Accepts NO command line arguments and does NOT use the read command. I will give you no credit if your bash script includes a read command. Also, you need to have at least one for..in loop in your code even if there may be other ways to do this problem. The script will go through a list of entries in the current directory (do not process subdirectories):...

  • LINUX: Question 1) There has been suspicious activity on the system.  In order to preserve log information,...

    LINUX: Question 1) There has been suspicious activity on the system.  In order to preserve log information, it will be necessary to archive the current files in /var/logending with the ".log" extension.  The files are to be saved to a file named log.tar, stored in the directory, ~/archive.   It has also been requested that the files that were archived be saved to a directory, ~/backup. Objectives - Create an archive named log.tar that is stored in the archive directory located in the...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT