文档详情

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

发布:2017-06-08约9.46千字共19页下载文档
文本预览下载声明
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 computers IP address to , and the subnet mask is . Write the commands you use. # ifconfig eth0 netmask You are the administrator of the companys 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 yangangs 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, 45 Check
显示全部
相似文档