In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-27 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
Editor to share with you the use of linux's dirs command to display the records in the Shell directory stack, I believe most people do not know much about it, so share this article for you to learn. I hope you will learn a lot after reading this article. Let's learn the method together.
The dirs command is used to display stack records in the Shell directory. Displays all directories in the current Shell command stack without options, with the newly added directories on the left.
Syntax format: dirs [parameters]
Common parameters:
-c deletes all records in the directory stack-l displays the directories in the stack in full format. When the user host directory is displayed, list the full path, instead of "~"-n displays the nth directory from the right (n counts from 0) + n displays the nth directory from the left (n counts from 0)-p lists many records in the stack as one record per row-v lists all records in the stack as one record per row, and adds a sequence number to each line (numbered from 0)
Reference example
Display the records in the Shell directory stack:
[root@linuxcool ~] # dirs
Displays the contents of the Shell directory stack, with one record per line:
[root@linuxcool] # dirs-p
Display the contents of the Shell directory stack, one record per line, and add a serial number:
[root@linuxcool] # dirs-v
Delete records in the Shell directory stack:
[root@linuxcool ~] # dirs-c above is to use linux's dirs command to display all the records in the Shell directory stack, 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.