In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-03-31 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/03 Report--
There are a lot of special symbols in Linux Shell, which should be paid special attention to when we write Shell scripts: on the one hand, we should know the usage of these special symbols, these symbols can get twice the result with half the effort; on the other hand, we should avoid the excessive use of these special symbols which makes the script difficult to debug and read.
These special symbols are listed roughly as follows:
#;;. , / / 'string' |! $${} $? $$* "string" * *?: ^ $# $@ `command` {} [] [[]] () (()) | & & {xx,yy,zz,... } ~ + ~-& / + -% = =! =
Output / input redirection:
>
< &>2 & 2 > & 2
~ represents the home directory, that is, the user directory of the currently logged in user.
For example: my login user is chen
Cd ~
~ stands for / home/chen/. Of course, the premise is that there is a user directory, and there will be more cases if there is no / home/chen directory.
/ refers to the root directory: the directory at the top of all directories.
. / indicates the current directory, and. / generally needs to be used in conjunction with other folders or files to refer to things in the current directory.
Cd. It doesn't make much sense to cd. / folder switch to a folder in the current directory
.. Represents the parent directory
Cd.. Switch to the parent directory cd.. / folder switch to a folder in the parent directory
These are the details of what "~", "/" and ". /" stand for in linux. Please pay more attention to other related articles!
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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.