[Control Center] cd 命令参数太长? V23
Tofloor
poster avatar
sleepinglight
deepin
2023-03-29 01:07
Author

问题/建议描述

 命令行运行 cd /home/lizhao/qork/JetBrains 2022 最新版本全家桶激活(请解压)/JetBrains 2022 最新版本全家桶激活/方式2:激活到2099年补丁/ja-netfilter-all/script

竟然提示 bash: cd: 参数太多

问题如何重现

 

问题重现频率

 

Reply Favorite View the author
All Replies
蔡EEPIN
deepin
2023-03-29 01:10
#1

别手敲 善用Tab。 空格前面没有转义符 系统当成多个路径了

Reply View the author
wlly-lzh
deepin
2023-03-29 01:17
#2

如同楼上所说,是你的使用方式不对。

Reply View the author
wlly-lzh
deepin
2023-03-29 01:19
#3

cd /home/lizhao/qork/'JetBrains 2022 最新版本全家桶激活(请解压)'/'JetBrains 2022 最新版本全家桶激活'/方式2:激活到2099年补丁/ja-netfilter-all/script

有空格的时候要加 '

Reply View the author
忘记、过去
Moderator
2023-03-29 01:20
#4

含有特殊字符的路径,两边加上引号就好,不然需要反斜杠转义

Reply View the author
云的眼泪
deepin
2023-03-29 01:51
#5

不能有空格,有空格要加引号

Reply View the author
jjcui8595
Moderator
2023-03-29 01:53
#6

命令中有特殊字符。建议用图形界面打开文件夹,右击打开终端

Reply View the author
kuangcc
deepin
2023-04-04 19:29
#7

我的方法是使用文件管理器,进入那个目录,然后鼠标右键,选择“在终端中打开”,这时进入终端模式,命令行就是当前目录了,前面的字符都不用输入了。也可以用 . 表示当前目录。

Reply View the author