Re: anoconda 2

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 04 Jan 2003 20:23:08 +0100, Paul Ryan wrote:

> When I paste it in with the dollar sign I get this

Nah, don't include the prefix. ;) It is the bash shell prompt of an
ordinary user whereas '#' would be the prompt of super-user "root".
In examples which include also the _output_ of commands, it makes
more clear what the commands are and what the output is. Example:

  $ cd /etc
  $ pwd
  /etc
  $ which fsck
  /usr/bin/which: no fsck in (/opt/IBMJava2-131/bin:/opt/IBMJava2-131/jre/bin:/bin:/usr/bin:/usr/X11R6/bin:/usr/local/bin:/home/ms/bin)
  $ su --login root
  Password: 
  # which fsck
  /sbin/fsck

A side-effect of including the prompt in examples is that newbies
who cut'n'paste a bad example into their shell including the prompt
won't damage their system by accident. The '#' prefix saves the rest
of the line from being executed (when using '$' you get an error as
you've seen). In the following example (don't try this!) I use '>'
as the prompt:

  > # rm -f /boot/vmlinuz
  >
  > ll /boot/vmlinuz
  lrwxrwxrwx    1 root     root           18 Dec 27 18:51 /boot/vmlinuz -> vmlinuz-2.4.20-2.2
  >

As you can see, "rm -f /boot/vmlinuz" did not remove the file.
Probably confusing, but some of us have reasons to post examples in
that format.

> [root@localhost hugo]# apropos ext2 fsck
> debugfs              (8)  - ext2 file system debugger
> dump                 (8)  - ext2 filesystem backup
> dump [rdump]         (8)  - ext2 filesystem backup
[snip]
>
> [root@localhost hugo]# rpm --query e2fsprogs
> e2fsprogs-1.27-9
> [root@localhost hugo]#
> 
> Looks like it's installed to me,but as a newbie ??

Most likely you switch to user "root" without logging in as "root".
When doing that you don't inherit root's search path for
executables, the PATH environment variable, which would include the
path to system administration tools in /sbin and /usr/sbin, for
instance. Use "su --login root" or "su -l root" or "su -", but not
"su".

- -- 
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)

iD8DBQE+F1Kg0iMVcrivHFQRAkBiAJ9bB++ZXIZ3jJ5WXfi3Z2T83BwM6ACfVYL+
j1AY032JWv7ohjkePq2OHgw=
=qKwV
-----END PGP SIGNATURE-----



-- 
Psyche-list mailing list
Psyche-list@redhat.com
https://listman.redhat.com/mailman/listinfo/psyche-list

[Index of Archives]     [Fedora General Discussion]     [Red Hat General Discussion]     [Centos]     [Kernel]     [Red Hat Install]     [Red Hat Watch]     [Red Hat Development]     [Red Hat 9]     [Gimp]     [Yosemite News]

  Powered by Linux