皮皮学,免费搜题
登录
搜题
【简答题】
eXerCISe 1-1: WOrKING WIth LINUX COMMaNDS 1. Log in to your Linux machine as root and open a shell. 2. type useradd lisa to create a user with the name lisa. 3. type passwd lisa. this command will prompt you for the password that you want to use. enter the password “password” and when asked for confirmation, enter it again. notice that this command will give you a warning about the password being too simple, which you can safely ignore. 4. use Ctrl-D to close the shell you are currently logged in to. if it was a nongraphical shell, you’ll now see a login prompt. if you’re working from a graphical environment, find the option that logs you out of your current session. 5. Log in again, this time as user lisa and open a shell. 6. type ls -l iwehig. this should give you an error message. 7. type ls il iwehig 2> ~/errors. this command redirects all errors to a file with the name errors that is created in your home directory. 8. type cat ~/errors to view the contents of this file. 9. type ls --help to view a list of options that can be used with the ls command. You’ll notice that the list is too long and doesn’t fit on the screen. 10. type ls --help | less to pipe the output of the ls command to less. You can now use the arrow keys to move up and down in the output. 11. press q to quit the less viewer. eXerCISe 1-2: GettING heLp 1. type man 3 intro. every section in the man pages has an intro page, describing the purpose of the section. 2. type man lvcreate. use /examples to look for the word examples. many man pages have an examples section near the end of the man page. in this section you can often find useful usage information. 3. type man -k sander. it will tell you “nothing appropriate”. if this happens on commands that you do expect to be available on your computer, it’s a good idea to use mandb to generate the new man pages index file. eXerCISe 1-3: WOrKING WIth the SheLL 1. Log in as root. 2. type echo LANG. this echoes the text Lang to the Stdout. 3. type echo $LANG. this echoes the current contents of the language variable to the Stdout. 4. type.UTF-8. You have now set the language variable to the French language. 5. type ls --help. You’ll notice that the output of the command shows in French. notice that on some distributions the language packages are not installed by default, so you won’t see a change in language after doing this. 6. Create a user florence, using the command useradd -m florence. use passwd florence to set the password for user florence. Set it to “password” 7. Log in as user florence and type echo.UTF-8 >> ~/.bashrc. this appends the Lang variable with its new value to the .bashrc file in this users home directory. 8. Still as florence, type ls --help. You’ll see the output still in english. 9. Log out, and log back in again as user Florence. type ls --help again. You should now see French language output. 10. type echo’ and press enter. as the command is incomplete, it will show a > indicating it is waiting for additional input. 11. use Ctrl-C to stop the command that is waiting.
拍照语音搜题,微信中搜索"皮皮学"使用
参考答案:
参考解析:
知识点:
.
..
皮皮学刷刷变学霸
举一反三
【单选题】方形水面为()。
A.
B.
C.
D.
【判断题】用含硅油的洗发水会伤发脱发
A.
正确
B.
错误
【单选题】本节(5.1)中,毛泽东在安源煤矿工人夜校中解释的字是:
A.
B.
C.
D.
【简答题】货币的含金量之比又称() A购买力平价 B铸币平价 C铸币数量 D铸币本位
【单选题】“康有为的思想倾向经历了一场剧烈的变化,他像很多同时代的人一样,起初是一位理学学者,现在却满腔是对西式政治改革的火一般的激情。”这说明( )
A.
康有为是一位思想激进并且善变的人
B.
康有为认识到了理学的“虚伪”
C.
民族危机激发了知识分子的救国探索
D.
中国社会正在被完全西方化
【单选题】什么是庞培古城消失的原因?()
A.
海啸
B.
泥石流
C.
战争
D.
火山爆发
【单选题】庞培古城消失的原因是
A.
战争
B.
海啸
C.
火山爆发
D.
泥石流
【单选题】货币的含金量之比又称( )
A.
购买力平价
B.
铸币平价
C.
铸币数量
D.
铸币本位
【单选题】悬吊式顶棚按照吊顶龙骨的材料不同可分为,轻钢龙骨吊顶以及
A.
格栅式吊顶
B.
灯道式吊顶
C.
木龙骨吊顶
D.
直接吊顶
【简答题】有一个正方形水池,水面是一个边长为10尺的正方形,在水池中央有一根芦苇,它高出水面1尺,如果把这根芦苇拉向水池一边的中点,它的高度恰好到达池边的水面,那么水的深度是______尺.
相关题目: