下面哪个命令和“chmod 755 tx.sh”命令等价?
A. chmod u=rwx,g=rw,o=rw tx.sh
B. chmod u=rwx,g=rx,o=rx tx.sh
C. chmod u+rwx,g+rw,o+rw tx.sh
D. chmod u+rwx,g+rx,o+rx tx.sh
查看答案
下面哪条命令可以将“a”目录及其中所有文件复制到“b”目录中?
A. cp a b
B. cp -r a/ b
C. cp a/* b
D. cp -r a/* b
下面哪条程序可以按数值从小到大的方式输出3行数字?
A. echo "13\n2\n1"|sort -r
B. echo "13\n2\n1"|sort -n
C. echo -e "13\n2\n1"|sort -r
D. echo -e "13\n2\n1"|sort -n
下面哪条命令可以从计算“tx.txt”文件有多少个字符?
A. wc -m tx.txt
B. wc -n tx.txt
C. wc -l tx.txt
D. wc -w tx.txt
下面哪条命令可以将“tx”用户的主要群组设置为“guests”
A. usermod -g guests tx
B. usermod -G guests tx
C. gpasswd -a tx guests
D. gpasswd -M tx guests