In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-14 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
Editor to share with you how to install bd in Linux, I believe most people do not know much about it, so share this article for your reference, I hope you can learn a lot after reading this article, let's go to know it!
How to install bd in Linux
Run the following command, download and install bd into / usr/bin/ using the wget command, add execute permissions, and create the required aliases in ~ / .bashrc:
$wget-- no-check-certificate-O / usr/bin/bd https://raw.github.com/vigneshwaranr/bd/master/bd $chmod + rx / usr/bin/bd $echo 'alias bd= ".bd-si" > > ~ / .bashrc $source ~ / .bashrc
Note: if you want to enable case-sensitive directory name matching, set the-s flag instead of the-si flag in the aliases created above.
To enable automatic completion support, run these commands:
$sudo wget-O / etc/bash_completion.d/bd https://raw.github.com/vigneshwaranr/bd/master/bash_completion.d/bd $sudo source / etc/bash_completion.d/bd
How to use bd in Linux
Suppose you are currently in the top directory of this path:
/ media/aaronkilik/Data/Computer Science/Documents/Books/LEARN/Linux/Books/server $
To quickly access the "Documents" directory, simply type:
$bd Documents
Then go directly to the Data directory, and you can type:
$bd Data
Fast switching between directories
In fact, bd makes it more straightforward, and all you have to do is type "bd", such as:
$bd Doc$ bd Da
Quickly change directories
Important: if there is more than one directory with the same name in the hierarchy, bd will move to the nearest directory, regardless of the nearest parent directory, as in the following example.
For example, in the path above, there are two directories with the same name, Books, if you want to move to:
/ media/aaronkilik/Data/ComputerScience/Documents/Books/LEARN/Linux/Books
Enter bd Books to enter:
/ media/aaronkilik/Data/ComputerScience/Documents/Books
Quickly enter the 'Books' directory
In addition, using bd such as `bd `in backquotes ``will print out the path without changing the current directory, so you can use `bd` with other common Linux commands, such as ls,echo.
In the following example, currently in the / var/www/html/internship/assets/filetree directory, to print out the absolute path, list the contents in detail, and count the size of all files in the directory html, you don't have to enter it, just type:
$echo `bd ht` $ls-l `bd ht` $du-cs `bd ht`
List the directories that are switched
The above is all the contents of the article "how to install bd in Linux". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!
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.