第二章
关于终端和Shell,下列描述错误的是( )
从本质上说,Linux是由Linux内核和Shell组成的。
Shell可以接受并解释用户输入的命令。
Linux中的Shell程序只有一种:shell
答案:Linux中的Shell程序只有一种:shell
Vim在运行过程中可以处于( )基本模式之一。
命令行
修改
文本
答案:正常;命令行;文本
下列关于Linux文件系统结构,描述错误的是( )。
Linux文件系统的结构层次鲜明,就像一棵倒立的树
根目录位于分层文件系统的最顶层,用“/”表示
文件名以符号“.”开头表示是隐藏文件
答案:/home目录是系统管理员的工作目录
要删除一个非空目录,可以使用的命令是( )。
rm
mkdir
rmdir
答案:rm
将/usr/bin/math.h文件复制到当前用户主目录的有效命令是( )。
mv  math.h  ~
cp  /usr/bin/math.h  ~
cp  math.h  ~
答案:cp /usr/bin/math.h ~
修改当前目录下abc.txt文件的权限,使文件所有者可读可写可执行( )。
chmod  o=rwx  abc.txt
chmod  u=rwx  abc.txt
chmod  u-rwx  abc.txt
答案:chmod u=rwx abc.txt
下列关于备份和还原的说法错误的是( )。
还原文件需要用到tar命令的-x选项
备份文件时,不能实现压缩
备份文件需要用到tar命令的-c选项
答案:备份文件时,不能实现压缩
用户创建完毕,可以修改用户主目录的命令是( )。
userdel
useradd
userput
答案:usermod
使用重定向,将ls命令的输出结果输出到ps.txt文件中的有效命令是( )。
ls  <  ps.txt
ls  <<  ps.txt
ls  ps.txt
答案:ls > ps.txt
使用gcc编译hello.c,并指定输出文件是hello.out,则有效的命令是( )。
gcc hello.c
gcc  –c  hello.out  hello.c
gcc hello.out
答案:gcc –o hello.out hello.c

温馨提示支付 ¥3.00 元后可查看付费内容,请先翻页预览!
点赞(0) dxwkbang
返回
顶部