CentOs - need help changing a path

Wong

Well-Known Member
Joined
Feb 4, 2009
Messages
278
Reaction score
0
I have downloaded a file eg.tar.gz

path where it is downloaded - > path/home/bob/Downloads

How can I untar that file in that folder ?

Terminal:
[root@centostest desktop]# -> how can i change the desktop to the path above

How can I change directory's ?

I have to untar the file then I need to change the extracted folder permission for the root account and then change the directory

When I change the permission for the root account will I have to be in the directory where the extracted folder is ?

I'm new to linux so TIA
 
I have downloaded a file eg.tar.gz

path where it is downloaded - > path/home/bob/Downloads

How can I untar that file in that folder ?

Terminal:
[root@centostest desktop]# -> how can i change the desktop to the path above

How can I change directory's ?

I have to untar the file then I need to change the extracted folder permission for the root account and then change the directory

When I change the permission for the root account will I have to be in the directory where the extracted folder is ?

I'm new to linux so TIA

Code:
cd /home/bob/Downloads

Code:
tar xvf filename.tar.gz

EDIT: Sorry, why do you have to change the permissions? What are you trying to do?
 
im installing request tracker and the guideline I have been given is very vague :D , I do understand the importance of the root account , in this case it requires me to install it as the root

I did try cd/home/bob/downloads , however I get the following :

Bash: cd: /home/bob/downloads: no such file or directory
 
im installing request tracker and the guideline I have been given is very vague :D , I do understand the importance of the root account , in this case it requires me to install it as the root

I did try cd/home/bob/downloads , however I get the following :

Bash: cd: /home/bob/downloads: no such file or directory

Downloads is with a capital D. The command is exactly like this:

Code:
cd /home/bob/Downloads
 
ah! the D thanks guys! :D

@mick Ty will probably need to use that command soon
 
Good way to not type something wrong is to use TAB as you type paths in.

It will autocomplete anything with the same letters or if you press Tab again give you a list of options.

So if you type /ho and pressed Tab it would become /home/ then type b and if you Press Tab again it will autocompleted /home/bob assuming there aren't any other folders that start with b.

If nothing autocompletes then it doesn't exist...which it would do if you typed /home/bob/d and pressed Tab instead of /home/bob/D
 
Good way to not type something wrong is to use TAB as you type paths in.

It will autocomplete anything with the same letters or if you press Tab again give you a list of options.

So if you type /ho and pressed Tab it would become /home/ then type b and if you Press Tab again it will autocompleted /home/bob assuming there aren't any other folders that start with b.

If nothing autocompletes then it doesn't exist...which it would do if you typed /home/bob/d and pressed Tab instead of /home/bob/D

I miss this so much when I have to work in the Windows command prompt.
 
What? They still don't anything like this?

I haven't touched Windows since Server 2003 so I assumed it would have gotten sorted out by now.

Windows Server 2008 has it, but only for locations. Doesn't work for commands. Don't know about previous Server versions but I know sure as hell that XP doesn't support it and we unfortunately have 90% WinXP population in the office.
 
I miss this so much when I have to work in the Windows command prompt.

Tab works in Windows command prompts? Has for quite sometime, right it's only for locations just checked now :-)
 
Last edited:
Good question :D

If you are unsure how to change directories you really shouldn't be logged in to a root account.

In all honesty if a person does not even know how to change a path then they should not be allowed any access to the box at all.
 
Top
Sign up to the MyBroadband newsletter
X