Question

Give three commands to display on screen the absolute path of home directory in unix

Give three commands to display on screen the absolute path of home directory in unix

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

1) which command can be used to find the home directory path in unix

Eg: which file-name

2) pwd (print working directory) also used to find the directory path of the current directory

Eg: pwd

3) find command is used to find full path to your system

Eg: find/file-name

4) echo $PATH also finds the directories of executable files

Eg: echo $PATH

Add a comment
Know the answer?
Add Answer to:
Give three commands to display on screen the absolute path of home directory in unix
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
  • UNIX Manipulate directory structures. Display the absolute path of your home directory. Create a new subdirectory...

    UNIX Manipulate directory structures. Display the absolute path of your home directory. Create a new subdirectory called COP3353-temp in your home directory. Create a new subdirectory called assign1 in COP3353-temp. Create a new subdirectory called assign2 in COP3353-temp. Display the contents of the directory COP3353-temp. Delete the directory assign2. Display the contents of the directory COP3353-temp. Provide screenshots of each step and processes. Paste your screenshots in word document and send as attachent.

  • Write a BASH script commands that do the following: Print to screen/terminal content of PATH variable...

    Write a BASH script commands that do the following: Print to screen/terminal content of PATH variable Add at the beginning of the PATH variable your home directory (not the directory named /home but the home directory of the user logged to the system) Print to screen/terminal content of PATH variable after you changed it

  • Unix questions, i need help on Hint: Commands to study to answer this question: predefined shell...

    Unix questions, i need help on Hint: Commands to study to answer this question: predefined shell variables, and .profile script file, echo SHELL, HOME, PATH, MAIL and TERM are predefined shell variables. You can use the value of a shell variable in a shell command putting $ in front of it. For example, to display the value of the HOME directory of the user, specify $HOME in the echo command like echo $HOME. Do not give just the value of...

  • 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...

  • 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...

  • e) In the context of Unix file system , what does "path" means? f) Write down...

    e) In the context of Unix file system , what does "path" means? f) Write down the absolute path for the main.cpp in the timeproj directory g)Write down the relative path from inside timeproj directory to the prgm1.cpp file h)Write down the Unix commands and key strokes needed to create a new sourcefile named time.cpp and then save it to disk using the pico editor. i) In Unix each file has three access modes, namely r,w, and x. 1) Write...

  • 4. (15%) Show the commands you would use change the current working directory from student’s home...

    4. (15%) Show the commands you would use change the current working directory from student’s home directory: /home/student to the student’s apache web directory:/var/www/student using: a. (5%) A series of relative commands b. (5%) A single relative command c. (5%) A single absolute command 5. (20%) Suppose you are presently in the /home/student folder and you wish to copy a file (file3.jpg) from the /home/seed/pics directory to your current directory. Provide two sets of copy commands to accomplish your goal:...

  • Explain what the following UNIX command does: Is 'echo I.txt' Please type shell commands (for Windows....

    Explain what the following UNIX command does: Is 'echo I.txt' Please type shell commands (for Windows. UNIX, or any other system that you like) for: creating a directory called hello world list the contents of this directory create a file called iwashere.txt display the contents of the file iwashere.txt from the command-line Please write a simple program in C for accepting a string from the command-line, reversing and printing the reversed string to standard output.

  • 3. The ____________ UNIX/Linux command will display to the screen a list of the current environmental...

    3. The ____________ UNIX/Linux command will display to the screen a list of the current environmental variables.

  • Unix/Linux The purpose of this lab is to practice the commands to manage and organize files...

    Unix/Linux The purpose of this lab is to practice the commands to manage and organize files and directories: How would one go about this? Thanks. Task 1: Preliminaries: 1) If you have not already done so, create a directory called bin under your HOME directory. 2) If you have not already made a copy (using ftp) of the file called famous.dat from the Assignment#1, do that now. 3) Make bin the active/working directory. Task 2: Perform all of the following...

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