我需要删除所有编译的数据:
build
,obj
,我写了一个命令
find \( -name build -o -name obj -o -name *.so \) -exec rm -rf {} \;
Run Code Online (Sandbox Code Playgroud)
递归遍历所有目录并删除我需要的所有内容。
为什么我最后会有这样的输出?也许我应该写一个不同的命令。
find: `./3/obj': No such file or directory
find: `./3/build': No such file or directory
find: `./1/obj': No such file or directory
find: `./1/build': No such file or directory
find: `./2/obj': No such file or directory
find: `./2/build': No such file or directory
Run Code Online (Sandbox Code Playgroud) 我添加了 SSH 密钥并输入了
ssh-add ~/.ssh/id_rsa
并ssh-add -l
打印了我的钥匙。但注销并再次登录后我看到
该代理人没有身份。
我尝试过设置一个非常大的生命周期,但没有帮助。
操作系统:Ubuntu 12.04.2 LTS
我有调用的目录Test
和其中的几个目录。两者Test
和其中的目录都有可执行文件。我想用ls
. 我会使用这个命令。
ls -l `find Test/ -perm /u=x,g=x,o=x -type f`
Run Code Online (Sandbox Code Playgroud)
这是一个好的/正确的/快速的命令吗?
我的解决办法是:
find Test/ -executable -type f -exec ls -l {} \;
Run Code Online (Sandbox Code Playgroud)
并得到了与warl0ck和pradeepchhetri提供的相同的结果。
在阅读了https://wiki.archlinux.org/index.php/Partitioning和https://help.ubuntu.com/12.04/installation-guide/powerpc/directory-tree上的建议后,我有点困惑。 HTML。为什么分区的大小之间存在如此大的差异?例如,关于/分区。
乌班图。
根分区通常需要 150-250MB。
拱。
对于使用现代硬盘的大多数用户来说,15-20 GB 应该足够了。
find ×2
recursive ×2
ubuntu ×2
arch-linux ×1
command ×1
executable ×1
partition ×1
rm ×1
ssh ×1