TAB键的妙用
在Linux中,如果忘记某个命令,可以输出开始字母后,按两次tab键,会展示处命令提示
[bob@SHUAI ~]$ sys[tab][tab]
sysctl systemd-analyze systemd-coredumpctl systemd-hwdb systemd-nspawn systemd-tmpfiles
system-config-abrt systemd-ask-password systemd-delta systemd-inhibit systemd-path systemd-tty-ask-password-agent
system-config-printer systemd-cat systemd-detect-virt systemd-loginctl systemd-run sys-unconfig
system-config-printer-applet systemd-cgls systemd-escape systemd-machine-id-setup systemd-stdio-bridge
systemctl systemd-cgtop systemd-firstboot systemd-notify systemd-sysv-convert
[bob@SHUAI ~]$ sys
sysctl systemd-analyze systemd-coredumpctl systemd-hwdb systemd-nspawn systemd-tmpfiles
system-config-abrt systemd-ask-password systemd-delta systemd-inhibit systemd-path systemd-tty-ask-password-agent
system-config-printer systemd-cat systemd-detect-virt systemd-loginctl systemd-run sys-unconfig
system-config-printer-applet systemd-cgls systemd-escape systemd-machine-id-setup systemd-stdio-bridge
systemctl systemd-cgtop systemd-firstboot systemd-notify systemd-sysv-convert
如果忘记某个文件的名字,可以在命令行的文件名开头后按两次tab键,就会展示以文件名开头的所有的文件
[bob@SHUAI ~]$ ls -al ~/.bash
.bash_history .bash_logout .bash_profile .bashrc