6: The PATH Variable(Working with programs)
2016-09-14 00:00
337 查看
In the last screen, we typed
/home/dq$ echo $PATH
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
/usr/bin/pythonto access the Python interpreter. If the Python interpreter is at that location, how come we can also access it by typing
python? We can do this because of the
PATHvariable. The
PATHenvironment variable contains several folders. Any program in any one of these folders can be run simply by typing the name of the program. Since
/usr/binis one of the folders in
PATH, we can access
python, which is in the folder, by just typing
pythoninstead of the full path.
Instructions
Typeecho $PATHto see what folders are in
PATH.
/home/dq$ echo $PATH
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
相关文章推荐
- Linux安装Python-MySQL 遇到(set with .set_extraction_path or the PYTHON_EGG_CACHE environment variable).
- Working with the Path Class
- 解决#1289 - The \'InnoDB\' feature is disabled; you need MySQL built with \'InnoDB\' to have it working的问题
- What's the point of initializing a variable with the same value twice? [closed]
- as打开时出现The environment variable JAVA_HOME (with The value of C:\Java\jdk1.8.0_101\bin) does not poin
- Handler crashed with error can't find templatefile in the path 解决方法
- android studio This client is too old to work with the working copy at
- 1: Setting Variables (Working with programs)
- 4: Create A Virtualenv( Challenge: Working with the Command Line)
- Oracle:environment variable "PATH" does not exceed the recommended length
- Spring MVC @PathVariable with dot (.) is getting truncated
- Get Started with the A* Pathfinding Project
- The JAVA_HOME environment variable does not point to a working JDK or JRE.
- Ant not found - Make sure it's in the path or use --with-ant-home
- The command could not be located because '/sbin' is not included in the PATH environment variable
- Understanding and Working with the MBR
- You need to run build with JDK or have tools.jar on the classpath.
- The 'InnoDB' feature is disabled; you need MySQL built with 'InnoDB' to have it working处理方法
- Description Resource Path Location Type The value of attribute "schema" associated with an element t
- Oracle:environment variable "PATH" does not exceed the recommended length