change drive

Matthew S-H mathbymath at aol.com
Tue Apr 19 11:51:55 UTC 2005


You shouldn't use sudo normally.  It is only for operations that NEED 
to use sudo.  You should rarely use it normally.
The only main usage that you should have for it is when you are 
installing software or modifying certain system files.
It is better to avoid using sudo when possible.  You can do some 
serious damage to your system if you misuse it.

Also, when you run sudo, a few commands are not available, such as 
"cd".  This is because they would pose a security risk.

Also, the correct path to your desktop is not "/home/desktop".  It is 
"/home/YOUR_USER_NAME/Desktop" .  Note that the "D" in desktop is 
capitalized.  Unlike Windows, capitilazation in linux is important.  In 
other words, it is case sensitive.

And you almost never will need to use sudo if you are doing anything 
within your home directory [ "/home/YOUR_USER_NAME" ].
Note that "~" is a shortcut to your home directory.

So, all you needed to type was:
"cd /home/YOUR_USER_NAME/Desktop"
OR
"cd ~/Desktop"
They both do the same thing.

[snip]
> The error message is the result of "sudo" not finding an executable 
> with the name "cd".
[snip]

As true as this is, I don't think that she is ready to know this, lol.  
I have been using Linux regularly for almost 6 months, and I still 
don't know how to change the PATH for root.  I probably could figure it 
out pretty easily, but I just don't feel like it.  And I actually don't 
even know how to ACTUALLY change the PATH for any user.  I have been 
cheating by changing it in "~/.bashrc" whenever I run terminal.


~Matt



On Apr 18, 2005, at 11:40 PM, sara vasquez wrote:

> how do i change drive in a terminal
> for rxample if I want to change drive to my desktop I was typing
> sudo cd /home/desktop but I get an error message that
> cd: command not found
> again all replies are greatly appreciated
>
> -- 
> ubuntu-users mailing list
> ubuntu-users at lists.ubuntu.com
> http://lists.ubuntu.com/mailman/listinfo/ubuntu-users

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: text/enriched
Size: 2078 bytes
Desc: not available
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20050419/396d1432/attachment.bin>


More information about the ubuntu-users mailing list