Sponsored Content
Full Discussion: Help
Operating Systems Linux Help Post 302086722 by BOFH on Saturday 26th of August 2006 09:19:31 PM
Old 08-26-2006
Quote:
Originally Posted by Irish Jimmy
I have Mandriva Linux, and I need help...

What does ./ mean?

as in ./flashplayer-inastaller
Just to give more info Smilie A period is a shortcut for the current directory. Two periods is a shortcut for the parent directory or one directory closer to the root directory (aka /). If you type ls . you'll get a listing of the current directory. If you type ls .., you'll get a listing of your parent directory.

When you run a command such as flashplayer-installer, your shell will prepend each of the colon separated paths located in your PATH environment variable to the beginning of your command.

PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin

/bin/flashplayer-installer
/sbin/flashplayer-installer
/usr/bin/flashplayer-installer
/usr/sbin/flashplayer-installer
/usr/local/bin/flashplayer-installer

So the command won't run because the location where the flashplayer-installer is installed isn't in your path.

Most professional sysadmins don't have period in their path to keep from someone putting a trojaned script with the same name as an available command in a directory you may be currently working in. Although some installations (AIX for example) have period in the path by default.

So if the command isn't in your path, you need to specify it along with the command.

You could type /home/jimmy/flashplayer-installer and the command would run, or you can just use the shortcut for the current directory and type in:

./flashplayer-installer

I try to do the "teach a man to fish" vs "give him a fish" replies Smilie You might pick up Essential System Administration or UNIX System Administration Handbook. They'll be a big help.

Carl
 
sh(1)							      General Commands Manual							     sh(1)

NAME
sh - Shell, the standard command language interpreter DESCRIPTION
[Tru64 UNIX] Tru64 UNIX provides two command interpreters with the name sh. The XCU5.0 and POSIX.2 compliant command interpreter sh is available in the file /usr/bin/posix/sh and is described in the sh(1p) reference page. The Bourne shell, historically known as sh, is available in the file /usr/bin/sh and is described in the sh(1b) reference page. [Tru64 UNIX] Your initial, or login, shell is determined by your entry in the file /etc/passwd. This file can be changed only by your sys- tem administrator. You must use whatever procedures are in place at your location to have this entry changed. [Tru64 UNIX] If available on your system, you may use the passwd -s or the chsh commands to change your login shell. Note This option is not available if your site manages passwords through the Network Information Service (NIS) facility. Check with your system administrator. [Tru64 UNIX] Subsequent shells spawned from the initial shell depend on the value in the environment variable BIN_SH. If this variable is set to xpg4, the POSIX shell is started. If this variable is set to svr4, an SVR4 compliant version of the shell is started. If this vari- able is unset, the Bourne shell is started. If this variable is set to any other value, an error is reported and the results are unpre- dictable. See the EXAMPLES section for information on setting this variable. NOTES
[Tru64 UNIX] With Tru64 UNIX Version 4.0 the Korn shell, /usr/bin/ksh is the same as the POSIX shell /usr/bin/posix/sh. RESTRICTIONS
[Tru64 UNIX] The file /etc/shells must include entries for both the POSIX shell /usr/bin/posix/sh and the Bourne shell, /usr/bin/sh. If this file is incorrect, see your system administrator. EXAMPLES
Using the Bourne, Korn, or POSIX shell, to set the variable BIN_SH to use the POSIX/ XCU5.0compliant shell, enter: BIN_SH=xpg4 export BIN_SH Using the Bourne, Korn, or POSIX shell, to set the variable BIN_SH to use the SVR4 compliant shell, enter: BIN_SH=svr4 export BIN_SH Using the Bourne, Korn, or POSIX shell, to unset the variable BIN_SH, enter: unset BIN_SH Using the C/ shell, to set the variable BIN_SH to use the POSIX/XCU5.0 compliant shell, enter: setenv BIN_SH xpg4 Using the C/ shell, to set the variable BIN_SH to use the SVR4 compliant shell, enter: setenv BIN_SH svr4 Using the C/ shell, to unset the variable BIN_SH, enter: unsetenv BIN_SH FILES
User profile. Contains user information, including the login shell name. Contains the names of available and permitted shells. SEE ALSO
Commands: csh(1), ksh(1), Bourne shell sh(1b), POSIX shell sh(1p), passwd(1) Files: passwd(4), shells(4) Standards: standards(5) sh(1)
All times are GMT -4. The time now is 08:15 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy