课程: Linux Tips
免费学习该课程!
今天就开通帐号,24,700 门业界名师课程任您挑!
Exploring the PATH variable
- [Narrator] The PATH environment variable contains a list of directories a shell will search to find the name of a program typed at the command line. On a Linux system, tools we use are commonly located in various directories and remembering where each of them lives can be tedious. The PATH variable can be set system-wide in a global shell configuration and can also be set or modified by user shell configurations, and because this varies by shell and even by the type of shell, in this episode I'll focus on setting PATH for an interactive Bash shell. PATH can also be set for non-interactive shells and for graphical shells. First, let's take a look at PATH with echo PATH. Here, I can see the directories already included in the variable which will be read from left to right. So if you type a command then there's a program that matches that in both bin and sbin for example, the one in sbin will run and the one in bin will…
内容
-
-
-
-
System basics: The Linux file system6 分钟 35 秒
-
(已锁定)
System basics: The command line5 分钟 23 秒
-
(已锁定)
System basics: Keyboard shortcuts1 分钟 40 秒
-
(已锁定)
System basics: sudo access and root4 分钟 57 秒
-
(已锁定)
System basics: Explore a system4 分钟 38 秒
-
(已锁定)
System basics: Exploring Bash7 分钟
-
(已锁定)
System basics: Bash scripting basics4 分钟 59 秒
-
(已锁定)
System basics: The Bash prompt6 分钟 2 秒
-
(已锁定)
System basics: Bash output redirection4 分钟 57 秒
-
(已锁定)
Bash expansions and substitutions4 分钟 23 秒
-
Bash aliases and functions4 分钟 7 秒
-
(已锁定)
Bash operators6 分钟 55 秒
-
Logs5 分钟 4 秒
-
(已锁定)
Grub3 分钟 19 秒
-
(已锁定)
SysV init4 分钟 43 秒
-
(已锁定)
Systemd5 分钟 29 秒
-
(已锁定)
Cron8 分钟 7 秒
-
(已锁定)
Understanding chroot3 分钟 16 秒
-
(已锁定)
System basics: User and group management8 分钟 39 秒
-
(已锁定)
System basics: Service management3 分钟 44 秒
-
(已锁定)
Backing up data with rsync5 分钟 35 秒
-
(已锁定)
Splitting and combining files3 分钟 3 秒
-
(已锁定)
Environment configuration files2 分钟 43 秒
-
(已锁定)
Working with dotfiles1 分钟 43 秒
-
(已锁定)
Exploring the PATH variable3 分钟 51 秒
-
(已锁定)
Browsing with the directory stack3 分钟 19 秒
-
(已锁定)
Finding or locating files3 分钟 52 秒
-
(已锁定)
Working with swap4 分钟 29 秒
-
(已锁定)
Read and write caches3 分钟 5 秒
-
(已锁定)
Terminals, consoles, and TTYs4 分钟 27 秒
-
(已锁定)
Exploring journalctl5 分钟 2 秒
-
-
-
-
-
-
-
-
-
-
-
-