1.shell features bash saves a list of commands that have been executed in the past. The command that the shell process holds in the buffer buffer will be saved to the file name when the shell exits. Bash_history using the up and down arrows to view previously executed commands Li Nux a hidden file starting with a dot number
2.history shortcut!#: #为命令历史列表中的命令编号, executable # # Command!!: Executes the previous command!_#: Executes the penultimate # command in the command history list!$: Reference the last parameter of the last command = Press ESC to release the press. Number!s Tring: Executes the most recent command parameter in the command history list that starts with string:-C: Empties the list-d#: Deletes the specified history command-A: Appends the current session's command history to the command history file
3. Command history-related environment Variables HISTSIZE: command history the number of commands that can be saved HISTFILE: command file HISTFILESIZE: command History file can save the number of Commands HISTCONTROL: control command generation ignoredups: Ignore record repeat command, repeat the same command only to count duplicates ignorspace: Commands that do not log on with a white-space character Switch ignorboth: have both of these characteristics 4.shell the variable assignment in the value variable name = value Assignment cannot be preceded by $, variable name can only contain numbers, letters, underscores, and cannot begin with a number strict case sensitivity       5.FHS specification (Linux File system catalog standard) /bin: programs that all users can execute /sbin: Administrator-Executable program /usr/bin: /usr/ sbin: /usr/local/bin: /usr/local/sbin: /bin,/sbin generally store the operating system required to run the program;/usr/bin,/usr/sbin generally store the operating system to achieve some specific functions required by the program; usr/local/bin,/usr/local/sbin Store third-party programs /boot: store system boot files /dev: store device files /etc: Store Profiles /etc/sysconfig system-level app directories /etc/init.d System Services Scripts /home: Normal user, the default in the/home directory has a directory with the same name as the user directory /root: Administrator directory /lib,/lib64 Library files /media: mount points, typically mount portable devices /mnt: mount points, typically mount additional storage devices /misc: Alternate directory /opt: alternate directory, typically used to install third-party software /proc: Pseudo-file system, mapping of kernel parameters /sys: pseudo-file system, mapping of hardware device parameters, system-level parameters for configuration of peripheral devices / srv: provides data storage location /tmp: temp directory for service /usr: shard,readonly /usr/include: header File /var: Frequently changed documents /var/log /var/lock /var/run /var/cache
Linux Basic Three