Re: Terminal



2009/5/16 Ruben Varela <rovr138@xxxxxxxxx>:
On Sat, May 16, 2009 at 5:35 PM, Johnny Rosenberg
<gurus.knugum@xxxxxxxxx> wrote:

2009/5/16 sg1 <thedoctor@xxxxxxxxxxxx>:
Hi

Trying to move from sg1 to desktop what is the exact command.
The below lines did not work.

Thanks

root@sg1-desktop:/home/sg1# cd ~/Desktop
bash: cd: /root/Desktop: No such file or directory
root@sg1-desktop:/home/sg1#

Seems like you are still root. You don't need to be, do you? So first
type ”exit” to go back to normal user. As long as you are root, ~
means ”/root”, even if you are at your home folder.

If you use your TAB key for autocompletion, you will make sure that
every folder and file you enter exists. You can double-hit the TAB to
see what options are available.

When not root, these commands will do what you want:

sg1@sg1-desktop:~$ cd Desktop
sg1@sg1-desktop:~/Desktop$

or

sg1@sg1-desktop:~$ cd ~/Desktop
sg1@sg1-desktop:~/Desktop$

or

sg1@sg1-desktop:~$ cd $HOME/Desktop
sg1@sg1-desktop:~/Desktop$

or

sg1@sg1-desktop:~$ cd /home/sg1/Desktop
sg1@sg1-desktop:~/Desktop$

Even though the last command is longer than the others, it doens't
require very much typing. It depends on how your folders and files are
organized, but this would probaby be enough:

cd /h[TAB]s[TAB]D[TAB][↵]

cd /h[TAB]s[TAB]De[TAB][↵]
If not it'll give you the options of Desktop and Documents
;)


As I said, it depends on how your folders are organized. I, for
instance, don't have a ~/Documents folder. Maybe most people do, and I
just removed mine, I don't know.

But [TAB][TAB] (make sure there's not too much time between each
[TAB]) gives you all the options you have for a certain string.

J.R.


If you really have to be root (why, why why?), you can't use ~ since
that's the root's home folder, not yours. You can't use $HOME either,
since that's also root's home folder. So you really need to input the
complete path: cd /home/sg1/Desktop

I've seen people saying that root doesn't have a desktop. On my
machine root DOES really have a desktop, but I don't know why. Maybe I
copied my own desktop there by mistake months ago when I was an even
more beginner than I am today… That doesn't explain, however, why my
wife also have /root/Desktop on her machine…

J.R.


--
ubuntu-users mailing list
ubuntu-users@xxxxxxxxxxxxxxxx
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users


--
ubuntu-users mailing list
ubuntu-users@xxxxxxxxxxxxxxxx
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users

--
ubuntu-users mailing list
ubuntu-users@xxxxxxxxxxxxxxxx
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users


--
ubuntu-users mailing list
ubuntu-users@xxxxxxxxxxxxxxxx
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users


Relevant Pages

  • Re: How to ... ?
    ... > I'm very comfortable with command lines so this was great. ... You may change the 'root' folder, it does not have to be the root of ... Then this cmd will search drive F: folder by folder and in each ... PARSE ARG nextdir ...
    (comp.os.os2.misc)
  • Re: Sysvol not replicating but no NTFRS errors
    ... NTFRSUTIL command returns the current root directory for the SYSVOL ... staging folder. ... Note The path that is reported by the LINKD command varies depending on ...
    (microsoft.public.windows.server.active_directory)
  • Re: Terminal
    ... Trying to move from sg1 to desktop what is the exact command. ... Seems like you are still root. ... If you use your TAB key for autocompletion, ... that's the root's home folder, ...
    (Ubuntu)
  • Re: Page and Images not found on Localhost
    ... I didn't know that even images could be declared as server controls. ... which may not have been declared as a server control. ... I designated the "project" folder as an application in IIS. ... is the root for anything under it. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Distributed File System / File Replication Service
    ... When running the first command, the primary server reports: The system cannot find the file specified which I think is probably ok since I have already unshared that folder and everything. ... In the Distributed File System snap-in, right-click the root target you want to remove, and then click Remove Target. ...
    (microsoft.public.windows.server.active_directory)