09.13
0
Someof the commands described in this book may not be installed when you go to run them.You might type a command and see a message similar to:

 bash   sillycommand
bash:  sillycommand: No such file  or directory

There are a few reasons this might happen:

❑    You mistyped the command name.
❑    The command is not in your PATH.
❑    You may need to be root user for the command to be in your PATH.
❑    The command is not installed on your computer.



Here are some commands you can run to look for a command you want to use:

 type mount                              Show  the first  mount   command  in PATH
mount   is /bin/mount

 whereis mount                         Show  binary,  sourceand  manpagesfor  mount
mount: /bin/mount /sbin/mount.nfs /sbin/mount.ntfs-3g  /sbin/mount.nfs4
/usr/share/man/man8/mount.8.gz  /usr/share/man/man2/mount.2.gz

 which   umount                        Find umount anywherein  file system
/bin/umount

 rpm -qal |grep umount       Find umount in  any   installed  package
/usr/share/man/man2/umount.2.gz
/usr/share/man/man2/umount2.2.gz
/bin/umount
/usr/share/man/man8/umount.8.gz
/sbin/umount.nfs
/sbin/umount.nfs4
/usr/share/man/man8/umount.nfs.8.gz
/opt/kde3/share/icons/crystalsvg/scalable/devices/mo_umount.svgz
/usr/lib/YaST2/startup/First-Stage/F03-umount
/usr/share/YaST2/clients/pre_umount_finish.ycp
/usr/share/YaST2/clients/umount_finish.ycp

 rpm-q   --whatprovides tar   Find out  which packageprovides  the  tar command
tar-1.17-21

Ifthe command you want is in a package that isn’t installed,you can install the packageusing either a shell or GUI:

❑    Installingfrom a shell Type yast at the command line to see a screen-oriented YaST2 Control Center. Then follow the text menus to Software SoftwareManage- ment Search and search for the package you want. Highlight the package and then click Accept. You can use the Tab key to navigate to the Accept button. (The zypper command, described in Chapter 2, is another tool you can use to install SUSE software packages from the command line.)


❑    Installing from a GUI — Choose Install Software from the Computer section of the SUSE green creature menu. This launches the graphical version of YaST2. You will need to enter the root password to run this application.

0 komentar:

Posting Komentar