In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-22 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly explains "detailed introduction of cd commands in Linux". Interested friends may wish to have a look at it. The method introduced in this paper is simple, fast and practical. Let's let the editor take you to learn the detailed introduction of the cd command in Linux.
The following is to explain the most commonly used basic command of Linux, the linux cd command.
It's no exaggeration to say that the linux cd command is the most commonly used command in linux, and we need to use it almost all the time.
There is also a cd command under DOS, and its function is roughly the same as that of the linux cd command, but there are differences, which we will explain below.
Copy the contents to the clipboard
Code:
Introduction to linux cd command
1. Name: cd
two。 Objects of use: all users
3. Command format: cd [dirName] (separated by a space between cd and directory)
4. Function: switch the current directory to dirName.
5. Examples of use:
[snms@snms /] $cd /
[snms@snms /] $ls
Bin dev home lost+found mnt proc sbin srv tmp var
Boot etc lib media opt root selinux sys usr
[snms@snms /] $cd / boot
[snms@snms boot] $ls
Config-2.6.27.5-117.fc10.i686 lost+found
Efi System.map-2.6.27.5-117.fc10.i686
Grub vmlinuz-2.6.27.5-117.fc10.i686
Initrd-2.6.27.5-117.fc10.i686.img
[snms@snms boot] $
The 6.linux cd command uses a trick:
Cd enters the user's home directory
Cd ~ enter the user's home directory
Cd-return to the directory where you were before entering this directory
Cd.. Return to the parent directory (if the current directory is "/", it will still be "/"; ".." after execution. " For the meaning of the superior directory)
Cd.. /.. Return to the upper two-level directory
Cd! $uses the parameter of the previous command as the cd parameter.
This is the difference between the linux cd command and the DOS cd command.
At this point, I believe you have a deeper understanding of the "detailed introduction of cd commands in Linux". You might as well do it in practice. Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!
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.