要从某个文件中找到含有ls字样的行,应该如何操作?
A: find / -name ls
B: grep "ls" /etc/passwd
C: grep / -name " ls"
D: whereis ls
A: find / -name ls
B: grep "ls" /etc/passwd
C: grep / -name " ls"
D: whereis ls
B
举一反三
- 要从某个文件中找到含有ls字样的行,应该如何操作? 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
- 以长格式列出当前用户家目录下文件名以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]?"
- 要从某个文件中找到含有ls字样的行,应该如何操作?
内容
- 0
如果要列出当前目录以及子目录下所有扩展名为 .txt的文件,可以使用命令( )。 A: find . –name ".txt" B: ls -d .txt C: . ls *.txt D: find .".txt"
- 1
如果你想列出当前目录以及子目录下所有扩展名为.txt的文件,下面()命令可以实现。 A: ls *.txt B: find -name ".txt" C: ls -d .txt D: grep / .txt
- 2
以长格式列出当前用户家目录下文件名以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]?"
- 3
给定列表ls = [1, 2, 3, "1", "2", "3"],其元素包含2种数据类型,哪个选项是列表ls的数据组织维度? A: 一维数据 B: 高维数据 C: 多维数据 D: 二维数据
- 4
在当前目录下查询是否存在a.txt文件,可以采用的方法有()。 A: find . -name a.txt B: grep a.txt C: ls a.txt