A: find / -name ls
B: grep "ls" /etc/passwd
C: grep / -name " ls"
D: whereis ls
举一反三
- 13.要从某个文件中找到含有ls字样的行,应该如何操作?得分/总分 A: whereis ls B: grep / -name " ls" C: find / -name ls D: grep "ls" /etc/passwd
- 要从某个文件中找到含有ls字样的行,应该如何操作? A: find / -name ls B: grep "ls" /etc/passwd C: grep / -name "ls" D: whereisls
- 要从某个文件中找到含有ls字样的行,应该如何操作? A: find / -name ls B: grep "ls" /etc/passwd C: grep / -name " ls" D: whereis ls
- 要从某个文件中找到含有ls字样的行,应该如何操作?
- 如果你想列出当前目录以及子目录下所有扩展名为.txt的文件,下面()命令可以实现。 A: ls *.txt B: find -name ".txt" C: ls -d .txt D: grep / .txt
内容
- 0
以长格式列出当前用户家目录下文件名以file开头,跟着2到5之间的一个数字的所有文件(提示,结合ls 命令) A: ls -l ~/file[2-5]* B: find ~ -name "file[2-5]*" C: find ~ -name "file[2-5]*" -exec ls -l {} \; D: ls -a ~/file[2-5]* E: ls -l ~/file[2-5] F: find ~ -name "file[2-5]?"
- 1
在当前目录下查询是否存在a.txt文件,可以采用的方法有()。 A: find . -name a.txt B: grep a.txt C: ls a.txt
- 2
如果你想列出当前目录以及子目录下所有扩展名为.txt文件,那么命令是( ) A: ls .txt B: find -name -.txt C: ls -d .txt D: ls *.txt
- 3
以长格式列出当前用户家目录下文件名以file开头,跟着2到5之间的一个数字的所有文件(提示,结合ls 命令) A: ls -l ~/file[2-5]* B: find ~ -name "file[2-5]*" C: find ~ -name "file[2-5]*" -exec ls -l {} ; D: ls -a ~/file[2-5]* E: ls -l ~/file[2-5] F: find ~ -name "file[2-5]?"
- 4
找出当前目录以及其子目录所有扩展名为”.txt”的文件,那么命令是() A: ls .txt B: find /dpt -name “.txt” C: ls -d .txt D: find -name “*.txt”