linux英文题库,linux试题及答案(国外英文资料).doc

linux试题及答案(国外英文资料)

linux试题及答案(国外英文资料)

/p-070194919290.html bank test

How to improve and learn Linux, there is no denying that practice is a relatively good one way is more effective, but there are a lot of people in the practice operation, many questions will bring distress, let me give you some simple operation instance to share, together to learn Linux:

Linux exercises, Linux practice problems, Linux practice problems, Linux practice problems

One, the command part

Create a new user, yangang, with a password of 123456 and add it to the root group. Write the commands you use.

# useradd yangang

# passwd yangang

123456

123456

# groupadd root

# usermod - g root yangang

Set the current computer's IP address to , and the subnet mask is . Write the commands you use.

# ifconfig eth0 netmask

You are the administrator of the company's Linux service. When you use vi to compose the /etc/inittab file, query the shutdown string in command mode and use the command.

Vi/etc/initab

/ shutdown

Displays the date and time commands of the current system.

Student: # date - d - y

Look at the help files that command sort, and write the commands you use.

# man sort

Statistics/etc/passwd file number and line number, write the command used.

# wc - cl/etc/passwd

Screen display/etc/HTTPD/conf/httpd.conf file command.

# less/etc/HTTPD/conf/httpd. conf exits the command as "Q"

8. Hello! Write/home/yangang/test.txt (except for the vi and vim editors).

# echo "hello! '> / home/yangang/test.txt

Allow the named daemon to run commands at level 3, 5.

3 # telinit

# telinit 5

Change the command for user yangang's login shell/sbin/nologin.

# usermod -s/sbin/nologin yangang

Check the commands for the host name of the current Linux server.

# cat/proc/sys/kernel/hostname

Or # sysctl kernel.hostname

Or # hostname

View the commands for the routing of the current host.

# the route

Configure the default gateway for the current host for 54.

# route add default gw 54

The command for the pings is 45 for three times.

# ping - C 3, 4

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值