我正在寻找这个问题的答案,不涉及命令less
:
有没有办法ls
在终端中运行命令并防止长文件名换行?
例如,在运行 ls 时,而不是以下内容:
shortfile
thisisalongfi
lename
shortfile
Run Code Online (Sandbox Code Playgroud)
我希望它在要换行的位置截断长文件名,或者根本不换行,以便它显示为:
shortfile
thisisalongfi
shortfile
Run Code Online (Sandbox Code Playgroud) ls ×1