In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-09-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article will explain in detail how to use the bash command in the linux system. The content of the article is of high quality, so the editor will share it with you for reference. I hope you will have some understanding of the relevant knowledge after reading this article.
What is Linux system Linux is a free-to-use and free-spread UNIX-like operating system, is a POSIX-based multi-user, multi-task, multi-threaded and multi-CPU operating system, using Linux can run major Unix tools, applications and network protocols.
Complete usage of tab key
When we click on the tab completion command or file name
When we double-click tab to list all the relevant options
Check out the following example
[root@localhost /] # cd / tmp
[root@localhost tmp] # pwd
/ tmp
[root@localhost tmp] # cd /
[root@localhost /] # pwd
/
[root@localhost /] # cd-
/ tmp
[root@localhost tmp] # pwd
/ tmp
Esc+.
Examples of usage
First touch a file, then edit the file
Touch abcdefghijk
Type vi, and then Esc+. Find out if abcdefghijk has appeared behind vi.
Escape character usage
Some commands in the system are alias functions, such as rm, mv, etc., which are actually rm-I and mv-I.
You can use the alias command to view system aliases, such as the following system default aliases.
[root@localhost testdir] # alias
Alias cp='cp-i'
Alias egrep='egrep-color=auto'
Alias fgrep='fgrep-color=auto'
Alias grep='grep-color=auto'
Alias l.='ls-d. *-color=auto'
Alias ll='ls-l-color=auto'
Alias ls='ls-color=auto'
Alias mv='mv-i'
Alias rm='rm-i'
Alias which='alias | / usr/bin/which-tty-only-read-alias-show-dot-show-tilde'
Sometimes when we delete a file, the following prompt appears, which requires us to confirm it one by one. The reason is that rm defaults to rm-I.
[root@localhost testdir] # cd dir1
[root@localhost dir1] # ls
File1 file2 file3 file4
[root@localhost dir1] # rm file1 file2 file3 file4rm: remove regular empty file? .ile1?. Y
Rm: remove regular empty file? .ile2?. Y
Rm: remove regular empty file? .ile3?. Y
Rm: remove regular empty file? .ile4?. Y
We can use the transfer character to invalidate the alias, using the following, the deletion will no longer be prompted to confirm.
[root@localhost testdir] # cd dir1
[root@localhost dir1] # ls
File1 file2 file3 file4
[root@localhost dir1] #\ rm file1 file2 file3 file4
On how to use the bash command in the linux system to share here, I hope the above content can be of some help to you, can learn more knowledge. If you think the article is good, you can share it for more people to see.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
The market share of Chrome browser on the desktop has exceeded 70%, and users are complaining about
The world's first 2nm mobile chip: Samsung Exynos 2600 is ready for mass production.According to a r
A US federal judge has ruled that Google can keep its Chrome browser, but it will be prohibited from
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
About us Contact us Product review car news thenatureplanet
More Form oMedia: AutoTimes. Bestcoffee. SL News. Jarebook. Coffee Hunters. Sundaily. Modezone. NNB. Coffee. Game News. FrontStreet. GGAMEN
© 2024 shulou.com SLNews company. All rights reserved.