哪一个命令能用来删除当前目录及其子目录下名为‘core'的文件?
A: find.-namecore-execrm;
B: find.-namecore-execrm{}\;
C: find.-namecore-execrm{}-;
D: find.-namecore-execrm{};
A: find.-namecore-execrm;
B: find.-namecore-execrm{}\;
C: find.-namecore-execrm{}-;
D: find.-namecore-execrm{};
B
举一反三
- 要将当前目录及其自目录下后缀名为“.bak”的文件全部删除,正确的命令是()。 A: find–name“*.bak”–execrm{}; B: find–name“*.bak”–execrm{}/; C: find–name“*.bak”–execrm/; D: find–name“*.bak”–execrm{}/
- 以下命令中,能用来删除当前目录及其子目录下名为'core'的文件的命令是( )。 A: find . -name core -exec rm ; B: find . -name core -exec rm {} \; C: find . -name core -exec rm {} -; D: find . -name core -exec rm {} ;
- ( )命令可以用来删除当前目录及其子目录下名为lx的文件。 A: rm *.* -rf B: find . -name lx -exec rm; C: find . -name lx-exec rm {}]\; D: rm lx _rf
- 要列出当前目录以及子目录下所有扩展名为“.txt”的文件,可使用的命令是() A: ls *.txt B: find . -name”.txt” C: ls -d.txt D: find .”.txt”
- 使用find命令查找当前目录下dir开头的目录和文件,使用下面哪条命令()。 A: find . -name "dir*" B: find . -inum "dir*" C: find . -name "dir" D: find . -n "dir*"
内容
- 0
如果要列出当前目录以及子目录下所有扩展名为 .txt的文件,可以使用命令( )。 A: find . –name ".txt" B: ls -d .txt C: . ls *.txt D: find .".txt"
- 1
找出当前目录以及其子目录所有扩展名为”.txt”的文件,那么命令是() A: ls .txt B: find /dpt -name “.txt” C: ls -d .txt D: find -name “*.txt”
- 2
()命令可以用来删除当前目录及其子目录下名为lx的文件。
- 3
如果您想列出当前目录以及子目录下所有扩展名为“.txt”的文件,那么您可以使用的命令是________ A: ls *.txt B: find . -name "*.txt" C: ls -d .txt D: find . ".txt"
- 4
Linux系统中,如果想列出当前目录以及子目录下所有扩展名为“.txt”的文件,那么可以使用的命令是 A: find . -name '*.txt' B: ls *.txt C: find . '.txt' D: ls -d.txt