cd命令行 python_cd命令

cd命令行 python

Once you have a folder, you can move into it using the cd command. cd means change directory. You invoke it specifying a folder to move into. You can specify a folder name, or an entire path.

拥有文件夹后,可以使用cd命令将其移入该文件夹。 cd装置Ç焊割d irectory。 您调用它指定要移动到的文件夹。 您可以指定文件夹名称或整个路径。

Example:

例:

mkdir fruits
cd fruits

Now you are into the fruits folder.

现在您进入了fruits文件夹。

You can use the .. special path to indicate the parent folder:

您可以使用..特殊路径来指示父文件夹:

cd .. #back to the home folder

The # character indicates the start of the comment, which lasts for the entire line after it’s found.

#字符表示注释的开始,在找到之后将持续整行。

You can use it to form a path:

您可以使用它来形成路径:

mkdir fruits
mkdir cars
cd fruits
cd ../cars

There is another special path indicator which is ., and indicates the current folder.

还有另一个特殊的路径指示器是. ,并指示当前文件夹。

You can also use absolute paths, which start from the root folder /:

您还可以使用从根文件夹/开始的绝对路径:

cd /etc

This command works on Linux, macOS, WSL, and anywhere you have a UNIX environment

此命令可在Linux,macOS,WSL以及您拥有UNIX环境的任何地方使用

翻译自: https://flaviocopes.com/unix-command-cd/

cd命令行 python

  • 1
    点赞
  • 4
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值