Home System Tutorial LINUX 2017 National Civil Service Examination Application Simulation Questions: What symbols are used for absolute paths?

2017 National Civil Service Examination Application Simulation Questions: What symbols are used for absolute paths?

Jun 02, 2024 pm 03:25 PM

Original link:

#Question one:

What symbols are used to represent absolute paths? What are the representations of the current directory and upper-level directory? What are the representations of the home directory? What commands are used to switch directories?

Answer: Question 2:

How to view the current process? How to perform an exit? How to check the current path? Answer:

Question 3:

How to clear the screen? How to exit the current command? How to perform sleep? How to check the current user id? What commands are used to view specific help?

Answer: Question 4:

What functions does the Ls command perform? What parameters can be usedView linux source filesChangchun linux training, what are the differences?

Answer: Question 5:

Commands to build soft links (shortcut methods) and hard links.

Answer: Question 6:

What commands are used to create a directory? What commands are used to create files? What commands are used to copy files?

Answer:

<span></span><code style="padding: 16px;color: #abb2bf;padding-top: 15px;background: #282c34;border-radius: 5px;, Consolas, Monaco, Menlo, monospace;border-top-left-radius: 0px;border-top-right-radius: 0px;border-bottom-right-radius: 0px;border-bottom-left-radius: 0px;font-size: 12px">$ chmod u+x file 给 file 的属主增加执行权限<br>$ chmod 751 file 给 file 的属主分配读、写、执行(7)的权限,给 file 的所在组分配读、执行(5)的权限,给其他用户分配执行(1)的权限<br>$ chmod u=rwx,g=rx,o=x file 上例的另一种形式<br>$ chmod =r file 为所有用户分配读权限<br>$ chmod 444 file 同上例<br>$ chmod a-wx,a+r file同上例<br>$ chmod -R u+r directory 递归地给 directory 目录下所有文件和子目录的属主分配读的权限<br></code>
Copy after login

Question 8:

What commands can be used to view the file contents?

Answer: Question 9:

Write any file command? How to output a string with spaces to the screen, such as "helloworld"?

Answer: Question 10:

The terminal is the file in that folder? The black hole file is the command in that folder?

Answer: Question 11:

Which command should be used for Unicom files? Which command is used to change the name?

Answer:

<span></span><code style="padding: 16px;color: #abb2bf;padding-top: 15px;background: #282c34;border-radius: 5px;, Consolas, Monaco, Menlo, monospace;border-top-left-radius: 0px;border-top-right-radius: 0px;border-bottom-right-radius: 0px;border-bottom-left-radius: 0px;font-size: 12px">mv <br>mv<br></code>
Copy after login

Question 12:

Which command should be used to copy files? What if you need to copy the folder together? What if there is a prompt function?

Answer:

<span></span><code style="padding: 16px;color: #abb2bf;padding-top: 15px;background: #282c34;border-radius: 5px;, Consolas, Monaco, Menlo, monospace;border-top-left-radius: 0px;border-top-right-radius: 0px;border-bottom-right-radius: 0px;border-bottom-left-radius: 0px;font-size: 12px">cp <br>cp -r  ????<br></code>
Copy after login

linux源文件在哪_查看linux源文件_linux查看yum源文件

Question 13:

Which command is used to delete files? What if you need to delete both the directory and the files under the directory? What commands are used to delete empty folders?

Answer:

<span></span><code style="padding: 16px;color: #abb2bf;padding-top: 15px;background: #282c34;border-radius: 5px;, Consolas, Monaco, Menlo, monospace;border-top-left-radius: 0px;border-top-right-radius: 0px;border-bottom-right-radius: 0px;border-bottom-left-radius: 0px;font-size: 12px">rm <br>rm -r rmdir<br></code>
Copy after login

问题十四:

Linux下命令有哪几种可使用的键值?分别代表哪些含意?

答案:

<span></span><code style="padding: 16px;color: #abb2bf;padding-top: 15px;background: #282c34;border-radius: 5px;, Consolas, Monaco, Menlo, monospace;border-top-left-radius: 0px;border-top-right-radius: 0px;border-bottom-right-radius: 0px;border-bottom-left-radius: 0px;font-size: 12px">“?”可替代单个字符。<br><br>“*”可替代任意多个字符。<br><br>方括号“[charset]”可替代 charset 集中的任何单个字符,如[a-z],[abABC]<br></code>
Copy after login

问题十五:

用哪些命令对一个文件的内容进行统计?(行号、单词数、字节数)

答案:

<span></span><code style="padding: 16px;color: #abb2bf;padding-top: 15px;background: #282c34;border-radius: 5px;, Consolas, Monaco, Menlo, monospace;border-top-left-radius: 0px;border-top-right-radius: 0px;border-bottom-right-radius: 0px;border-bottom-left-radius: 0px;font-size: 12px">wc 命令 - c 统计字节数 - l 统计行数 - w 统计字数。<br></code>
Copy after login

问题十六:

Grep命令有哪些用?怎么忽视大小写?怎么查找不含该串的行?

答案:

是一种强悍的文本搜索工具,它能使用正则表达式搜索文本,并把匹配的行复印下来。

<span></span><code style="padding: 16px;color: #abb2bf;padding-top: 15px;background: #282c34;border-radius: 5px;, Consolas, Monaco, Menlo, monospace;border-top-left-radius: 0px;border-top-right-radius: 0px;border-bottom-right-radius: 0px;border-bottom-left-radius: 0px;font-size: 12px">grep [stringSTRING] filename grep [^string] filename<br></code>
Copy after login

问题十七:

Linux中进程有哪几种状态?在ps显示下来的信息中,分别用哪些符号表示的?

答案:

<span></span><code style="padding: 16px;color: #abb2bf;padding-top: 15px;background: #282c34;border-radius: 5px;, Consolas, Monaco, Menlo, monospace;border-top-left-radius: 0px;border-top-right-radius: 0px;border-bottom-right-radius: 0px;border-bottom-left-radius: 0px;font-size: 12px">D 不可中断 Uninterruptible(usually IO)<br>R 正在运行,或在队列中的进程<br>S 处于休眠状态<br>T 停止或被追踪<br>Z 僵尸进程<br>W 进入内存交换(从内核 2.6 开始无效)<br>X 死掉的进程<br></code>
Copy after login

问题十八:

如何使一个命令在后台运行?

答案:

通常都是使用&在命令结尾来让程序手动运行。(命令后可以不追加空格)

问题十九:

借助ps如何显示所有的进程?如何借助ps查看指定进程的信息?

答案:

<span></span><code style="padding: 16px;color: #abb2bf;padding-top: 15px;background: #282c34;border-radius: 5px;, Consolas, Monaco, Menlo, monospace;border-top-left-radius: 0px;border-top-right-radius: 0px;border-bottom-right-radius: 0px;border-bottom-left-radius: 0px;font-size: 12px">ps -ef (system v 输出) <br><br>ps -aux bsd 格式输出<br><br>ps -ef | grep pid<br></code>
Copy after login

问题二十:

那个命令专门拿来查看后台任务?

答案:

<span></span><code style="padding: 16px;color: #abb2bf;padding-top: 15px;background: #282c34;border-radius: 5px;, Consolas, Monaco, Menlo, monospace;border-top-left-radius: 0px;border-top-right-radius: 0px;border-bottom-right-radius: 0px;border-bottom-left-radius: 0px;font-size: 12px">job -l<br></code>
Copy after login

问题二十一:

把后台任务调到前台执行使用哪些命令?把停下的后台任务在后台执行上去用哪些命令?

答案:

<span></span><code style="padding: 16px;color: #abb2bf;padding-top: 15px;background: #282c34;border-radius: 5px;, Consolas, Monaco, Menlo, monospace;border-top-left-radius: 0px;border-top-right-radius: 0px;border-bottom-right-radius: 0px;border-bottom-left-radius: 0px;font-size: 12px">把后台任务调到前台执行 <span style="color: #e6c07b;line-height: 26px">fg</span><br><br>把停下的后台任务在后台执行起来 <span style="color: #e6c07b;line-height: 26px">bg</span><br></code>
Copy after login

问题二十二:

中止进程用哪些命令?带哪些参数?

答案:

<span></span><code style="padding: 16px;color: #abb2bf;padding-top: 15px;background: #282c34;border-radius: 5px;, Consolas, Monaco, Menlo, monospace;border-top-left-radius: 0px;border-top-right-radius: 0px;border-bottom-right-radius: 0px;border-bottom-left-radius: 0px;font-size: 12px"><span style="color: #e6c07b;line-height: 26px">kill</span> [-s ][程序] 或 <span style="color: #e6c07b;line-height: 26px">kill</span> [-l ] <br><br><span style="color: #e6c07b;line-height: 26px">kill</span>-9 pid<br></code>
Copy after login

问题二十三:

如何查看系统支持的所有讯号?

答案:

<span></span><code style="padding: 16px;color: #abb2bf;padding-top: 15px;background: #282c34;border-radius: 5px;, Consolas, Monaco, Menlo, monospace;border-top-left-radius: 0px;border-top-right-radius: 0px;border-bottom-right-radius: 0px;border-bottom-left-radius: 0px;font-size: 12px"><span style="color: #e6c07b;line-height: 26px">kill</span> -l<br></code>
Copy after login

问题二十四:

搜索文件用哪些命令?格式是如何样的?

答案:

<span></span><code style="padding: 16px;color: #abb2bf;padding-top: 15px;background: #282c34;border-radius: 5px;, Consolas, Monaco, Menlo, monospace;border-top-left-radius: 0px;border-top-right-radius: 0px;border-bottom-right-radius: 0px;border-bottom-left-radius: 0px;font-size: 12px">find   <br><br>whereis 加参数与文件名<br><br>locate 只加文件名<br><br>find 直接搜索磁盘,较慢。微信搜索公众号:架构师指南,回复:架构师 领取资料 。<br><br>find / -name <span style="color: #98c379;line-height: 26px">"string*"</span><br></code>
Copy after login

问题二十五:

查看当前谁在使用该主机用哪些命令?查找自己所在的终端信息用哪些命令?

答案:

<span></span><code style="padding: 16px;color: #abb2bf;padding-top: 15px;background: #282c34;border-radius: 5px;, Consolas, Monaco, Menlo, monospace;border-top-left-radius: 0px;border-top-right-radius: 0px;border-bottom-right-radius: 0px;border-bottom-left-radius: 0px;font-size: 12px">查找自己所在的终端信息:who am i<br><br>查看当前谁在使用该主机:who<br></code>
Copy after login

问题二十六:

使用哪些命令查看用过的命令列表?

答案:

<span></span><code style="padding: 16px;color: #abb2bf;padding-top: 15px;background: #282c34;border-radius: 5px;, Consolas, Monaco, Menlo, monospace;border-top-left-radius: 0px;border-top-right-radius: 0px;border-bottom-right-radius: 0px;border-bottom-left-radius: 0px;font-size: 12px"><span style="color: #e6c07b;line-height: 26px">history</span><br></code>
Copy after login

问题二十七:

使用哪些命令查看c盘使用空间?空闲空间呢?

答案:

<span></span><code style="padding: 16px;color: #abb2bf;padding-top: 15px;background: #282c34;border-radius: 5px;, Consolas, Monaco, Menlo, monospace;border-top-left-radius: 0px;border-top-right-radius: 0px;border-bottom-right-radius: 0px;border-bottom-left-radius: 0px;font-size: 12px">df -hl<br>文件系统 容量 已用 可用 已用% 挂载点<br>Filesystem Size Used Avail Use% Mounted on /dev/hda2 45G 19G 24G 44% /<br>/dev/hda1 494M 19M 450M 4% /boot<br></code>
Copy after login

问题二十八:

使用哪些命令查看网路是否连通?

答案:

<span></span><code style="padding: 16px;color: #abb2bf;padding-top: 15px;background: #282c34;border-radius: 5px;, Consolas, Monaco, Menlo, monospace;border-top-left-radius: 0px;border-top-right-radius: 0px;border-bottom-right-radius: 0px;border-bottom-left-radius: 0px;font-size: 12px">netstat<br></code>
Copy after login

问题二十九:

使用哪些命令查看ip地址及插口信息?

答案:

<span></span><code style="padding: 16px;color: #abb2bf;padding-top: 15px;background: #282c34;border-radius: 5px;, Consolas, Monaco, Menlo, monospace;border-top-left-radius: 0px;border-top-right-radius: 0px;border-bottom-right-radius: 0px;border-bottom-left-radius: 0px;font-size: 12px">ifconfig<br></code>
Copy after login

问题三十:

查看各种环境变量用哪些命令?

答案:

<span></span><code style="padding: 16px;color: #abb2bf;padding-top: 15px;background: #282c34;border-radius: 5px;, Consolas, Monaco, Menlo, monospace;border-top-left-radius: 0px;border-top-right-radius: 0px;border-bottom-right-radius: 0px;border-bottom-left-radius: 0px;font-size: 12px">查看所有 env<br>查看某个,如 home:env <span style="color: #d19a66;line-height: 26px">$HOME</span><br></code>
Copy after login

问题三十一:

通过哪些命令指定命令提示符?

答案:

<span></span><code style="padding: 16px;color: #abb2bf;padding-top: 15px;background: #282c34;border-radius: 5px;, Consolas, Monaco, Menlo, monospace;border-top-left-radius: 0px;border-top-right-radius: 0px;border-bottom-right-radius: 0px;border-bottom-left-radius: 0px;font-size: 12px">u:显示当前用户账号<br>h:显示当前主机名<br>W:只显示当前路径最后一个目录<br>w:显示当前绝对路径(当前用户目录会以~代替)<br><span style="color: #d19a66;line-height: 26px">$PWD</span>:显示当前全路径<br>$:显示命令行’$<span style="color: #98c379;line-height: 26px">'或者’#'</span>符号<br><span style="color: #5c6370;font-style: italic;line-height: 26px">#:下达的第几个命令</span><br>d:代表日期,格式为week day month date,例如:<span style="color: #98c379;line-height: 26px">"MonAug1"</span><br>t:显示时间为24小时格式,如:HH:MM:SS<br>T:显示时间为12小时格式<br>A:显示时间为24小时格式:HH:MM<br>v:BASH的版本信息 如<span style="color: #e6c07b;line-height: 26px">export</span> PS1=’[u@hw<span style="color: #5c6370;font-style: italic;line-height: 26px">#]$‘</span><br></code>
Copy after login

问题三十二:

查找命令的可执行文件是去哪查找的?如何对其进行设置及添加?

答案:

<span></span><code style="padding: 16px;color: #abb2bf;padding-top: 15px;background: #282c34;border-radius: 5px;, Consolas, Monaco, Menlo, monospace;border-top-left-radius: 0px;border-top-right-radius: 0px;border-bottom-right-radius: 0px;border-bottom-left-radius: 0px;font-size: 12px">whereis [-bfmsu][-B ...][-M ...][-S ...][文件...]<br><br>补充说明:whereis 指令会在特定目录中查找符合条件的文件。这些文件的烈性应属于原始代码,二进制文件,或是帮助文件。<br><br>-b   只查找二进制文件。<br>-B 只在设置的目录下查找二进制文件。-f 不显示文件名前的路径名称。<br>-m   只查找说明文件。<br>-M 只在设置的目录下查找说明文件。-s 只查找原始代码文件。<br>-S 只在设置的目录下查找原始代码文件。-u 查找不包含指定类型的文件。<br><span style="color: #e6c07b;line-height: 26px">which</span> 指令会在 PATH 变量指定的路径中,搜索某个系统命令的位置,并且返回第一个搜索结果。<br>-n 指定文件名长度,指定的长度必须大于或等于所有文件中最长的文件名。<br>-p 与-n 参数相同,但此处的包括了文件的路径。-w 指定输出时栏位的宽度。<br>-V   显示版本信息<br></code>
Copy after login

问题三十三:

通过哪些命令查找执行命令?

答案:

<span></span><code style="padding: 16px;color: #abb2bf;padding-top: 15px;background: #282c34;border-radius: 5px;, Consolas, Monaco, Menlo, monospace;border-top-left-radius: 0px;border-top-right-radius: 0px;border-bottom-right-radius: 0px;border-bottom-left-radius: 0px;font-size: 12px"><span style="color: #e6c07b;line-height: 26px">which</span> 只能查可执行文件<br><br>whereis 只能查二进制文件、说明文档,源文件等<br></code>
Copy after login

问题三十四:

如何对命令进行取别称?

答案:

<span></span><code style="padding: 16px;color: #abb2bf;padding-top: 15px;background: #282c34;border-radius: 5px;, Consolas, Monaco, Menlo, monospace;border-top-left-radius: 0px;border-top-right-radius: 0px;border-bottom-right-radius: 0px;border-bottom-left-radius: 0px;font-size: 12px"><span style="color: #e6c07b;line-height: 26px">alias</span> la=<span style="color: #98c379;line-height: 26px">'ls -a'</span><br></code>
Copy after login

问题三十五:

du和df的定义linux vi 命令,以及区别?

答案:

<span></span><code style="padding: 16px;color: #abb2bf;padding-top: 15px;background: #282c34;border-radius: 5px;, Consolas, Monaco, Menlo, monospace;border-top-left-radius: 0px;border-top-right-radius: 0px;border-bottom-right-radius: 0px;border-bottom-left-radius: 0px;font-size: 12px">du 显示目录或文件的大小<br><br>df 显示每个所在的文件系统的信息,默认是显示所有文件系统。<br>(文件系统分配其中的一些磁盘块用来记录它自身的一些数据,如 i 节点,磁盘分布图,间接块,超级块等。这些数据对大多数用户级的程序来说是不可见的,通常称为 Meta Data。) du 命令是用户级的程序,它不考虑 Meta Data,而 df 命令则查看文件系统的磁盘分配图并考虑 Meta Data。<br>df 命令获得真正的文件系统数据,而 du 命令只查看文件系统的部分情况。<br></code>
Copy after login

问题三十六:

awk解读。

答案:

<span></span><code style="padding: 16px;color: #abb2bf;padding-top: 15px;background: #282c34;border-radius: 5px;, Consolas, Monaco, Menlo, monospace;border-top-left-radius: 0px;border-top-right-radius: 0px;border-bottom-right-radius: 0px;border-bottom-left-radius: 0px;font-size: 12px">awk <span style="color: #98c379;line-height: 26px">'{pattern + action}'</span> {filenames}<br><span style="color: #5c6370;font-style: italic;line-height: 26px">#cat /etc/passwd |awk -F ':' '{print $1"t"$7}' //-F 的意思是以':'分隔 root /bin/bash</span><br>daemon /bin/sh 搜索/etc/passwd 有 root 关键字的所有行<br><span style="color: #5c6370;font-style: italic;line-height: 26px">#awk -F: '/root/' /etc/passwd root:x:0:0:root:/root:/bin/bash</span><br></code>
Copy after login

问题三十七:

当你须要给命令绑定一个宏或则键盘的时侯,应当如何做呢?

答案:

<span></span><code style="padding: 16px;color: #abb2bf;padding-top: 15px;background: #282c34;border-radius: 5px;, Consolas, Monaco, Menlo, monospace;border-top-left-radius: 0px;border-top-right-radius: 0px;border-bottom-right-radius: 0px;border-bottom-left-radius: 0px;font-size: 12px">可以使用<span style="color: #e6c07b;line-height: 26px">bind</span>命令,<span style="color: #e6c07b;line-height: 26px">bind</span>可以很方便地在shell中实现宏或按键的绑定。<br><br>在进行按键绑定的时候,我们需要先获取到绑定按键对应的字符序列。<br><br>比如获取F12的字符序列获取方法如下:先按下Ctrl+V,然后按下F12 .我们就可以得到F12的字符序列 ^[[24~。<br><br>接着使用<span style="color: #e6c07b;line-height: 26px">bind</span>进行绑定。<br><br>[root@localhost ~]<span style="color: #5c6370;font-style: italic;line-height: 26px"># bind ‘”e[24~":"date"'</span><br><br>注意:相同的按键在不同的终端或终端模拟器下可能会产生不同的字符序列。<br><br>【附】也可以使用showkey -a命令查看按键对应的字符序列。<br></code>
Copy after login

问题三十八:

假如一个linux菜鸟想要晓得当前系统支持的所有命令的列表,他须要如何做?

答案:

使用命令compgen­-c,可以复印出所有支持的命令列表。

<span></span><code style="padding: 16px;color: #abb2bf;padding-top: 15px;background: #282c34;border-radius: 5px;, Consolas, Monaco, Menlo, monospace;border-top-left-radius: 0px;border-top-right-radius: 0px;border-bottom-right-radius: 0px;border-bottom-left-radius: 0px;font-size: 12px">[root@localhost ~]$ compgen -c<br>l.<br>ll<br>ls<br><span style="color: #e6c07b;line-height: 26px">which</span><br><span style="color: #c678dd;line-height: 26px">if</span><br><span style="color: #c678dd;line-height: 26px">then</span><br><span style="color: #c678dd;line-height: 26px">else</span><br><span style="color: #c678dd;line-height: 26px">elif</span><br><span style="color: #c678dd;line-height: 26px">fi</span><br><span style="color: #c678dd;line-height: 26px">case</span><br><span style="color: #c678dd;line-height: 26px">esac</span><br><span style="color: #c678dd;line-height: 26px">for</span><br>select<br><span style="color: #c678dd;line-height: 26px">while</span><br>until<br><span style="color: #c678dd;line-height: 26px">do</span><br><span style="color: #c678dd;line-height: 26px">done</span><br>…<br></code>
Copy after login

问题三十九:

假如你的助手想要复印出当前的目录栈,你会建议他如何做?

linux源文件在哪_linux查看yum源文件_查看linux源文件

答案:

使用Linux命令dirs可以将当前的目录栈复印下来。

<span></span><code style="padding: 16px;color: #abb2bf;padding-top: 15px;background: #282c34;border-radius: 5px;, Consolas, Monaco, Menlo, monospace;border-top-left-radius: 0px;border-top-right-radius: 0px;border-bottom-right-radius: 0px;border-bottom-left-radius: 0px;font-size: 12px">[root@localhost ~]<span style="color: #5c6370;font-style: italic;line-height: 26px"># dirs</span><br>/usr/share/X11<br>【附】:目录栈通过<span style="color: #e6c07b;line-height: 26px">pushd</span> <span style="color: #e6c07b;line-height: 26px">popd</span> 来操作。<br></code>
Copy after login

问题四十:

你的系统目前有许多正在运行的任务,在不重启机器的条件下,有哪些方式可以把所有正在运行的进程移除呢?

答案:

使用linux命令’disown-r’可以将所有正在运行的进程移除。

问题四十一:

bashshell中的hash命令有哪些作用?

答案:

linux命令’hash’管理着一个外置的哈希表查看linux源文件,记录了已执行过的命令的完整路径,用该命令可以复印出你所使用过的命令以及执行的次数。

<span></span><code style="padding: 16px;color: #abb2bf;padding-top: 15px;background: #282c34;border-radius: 5px;, Consolas, Monaco, Menlo, monospace;border-top-left-radius: 0px;border-top-right-radius: 0px;border-bottom-right-radius: 0px;border-bottom-left-radius: 0px;font-size: 12px">[root@localhost ~]<span style="color: #5c6370;font-style: italic;line-height: 26px"># hash</span><br>hits <span style="color: #e6c07b;line-height: 26px">command</span><br>2 /bin/ls<br>2 /bin/su<br></code>
Copy after login

问题四十二:

哪一个bash外置命令才能进行物理运算。

答案:

<span></span><code style="padding: 16px;color: #abb2bf;padding-top: 15px;background: #282c34;border-radius: 5px;, Consolas, Monaco, Menlo, monospace;border-top-left-radius: 0px;border-top-right-radius: 0px;border-bottom-right-radius: 0px;border-bottom-left-radius: 0px;font-size: 12px">bash shell 的内置命令<span style="color: #e6c07b;line-height: 26px">let</span> 可以进行整型数的数学运算。<br><br><span style="color: #61aeee;line-height: 26px">#! /bin/bash</span><br>…<br>…<br><span style="color: #e6c07b;line-height: 26px">let</span> c=a+b<br>…<br>…<br></code>
Copy after login

问题四十三:

如何一页一页地查看一个大文件的内容呢?

答案:

通过管线将命令”catfile_name.txt”和’more’连接在一起可以实现这个须要.

<span></span><code style="padding: 16px;color: #abb2bf;padding-top: 15px;background: #282c34;border-radius: 5px;, Consolas, Monaco, Menlo, monospace;border-top-left-radius: 0px;border-top-right-radius: 0px;border-bottom-right-radius: 0px;border-bottom-left-radius: 0px;font-size: 12px">[root@localhost ~]<span style="color: #5c6370;font-style: italic;line-height: 26px"># cat file_name.txt | more</span><br></code>
Copy after login

问题四十四:

数据字典属于哪一个用户的?

答案:

数据字典是属于’SYS’用户的,用户‘SYS’和’SYSEM’是由系统默认手动创建的

问题四十五:

如何查看一个linux命令的概要与用法?假定你在/bin目录中碰巧听到一个你从没见过的的命令,如何能够晓得它的作用和用法呢?

答案:

使用命令whatis可以先出显示出这个命令的用法简略,例如,你可以使用whatiszcat去查看‘zcat’的介绍以及使用简略。

<span></span><code style="padding: 16px;color: #abb2bf;padding-top: 15px;background: #282c34;border-radius: 5px;, Consolas, Monaco, Menlo, monospace;border-top-left-radius: 0px;border-top-right-radius: 0px;border-bottom-right-radius: 0px;border-bottom-left-radius: 0px;font-size: 12px"><br><br>[root@localhost ~]<span style="color: #5c6370;font-style: italic;line-height: 26px"># whatis zcat</span><br>zcat [gzip] (1) – compress or expand files<br><br></code>
Copy after login

The above is the detailed content of 2017 National Civil Service Examination Application Simulation Questions: What symbols are used for absolute paths?. For more information, please follow other related articles on the PHP Chinese website!

Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

Hot Topics

Java Tutorial
1664
14
PHP Tutorial
1268
29
C# Tutorial
1243
24
What is the most use of Linux? What is the most use of Linux? Apr 09, 2025 am 12:02 AM

Linux is widely used in servers, embedded systems and desktop environments. 1) In the server field, Linux has become an ideal choice for hosting websites, databases and applications due to its stability and security. 2) In embedded systems, Linux is popular for its high customization and efficiency. 3) In the desktop environment, Linux provides a variety of desktop environments to meet the needs of different users.

How to learn Linux basics? How to learn Linux basics? Apr 10, 2025 am 09:32 AM

The methods for basic Linux learning from scratch include: 1. Understand the file system and command line interface, 2. Master basic commands such as ls, cd, mkdir, 3. Learn file operations, such as creating and editing files, 4. Explore advanced usage such as pipelines and grep commands, 5. Master debugging skills and performance optimization, 6. Continuously improve skills through practice and exploration.

Does the internet run on Linux? Does the internet run on Linux? Apr 14, 2025 am 12:03 AM

The Internet does not rely on a single operating system, but Linux plays an important role in it. Linux is widely used in servers and network devices and is popular for its stability, security and scalability.

What are Linux operations? What are Linux operations? Apr 13, 2025 am 12:20 AM

The core of the Linux operating system is its command line interface, which can perform various operations through the command line. 1. File and directory operations use ls, cd, mkdir, rm and other commands to manage files and directories. 2. User and permission management ensures system security and resource allocation through useradd, passwd, chmod and other commands. 3. Process management uses ps, kill and other commands to monitor and control system processes. 4. Network operations include ping, ifconfig, ssh and other commands to configure and manage network connections. 5. System monitoring and maintenance use commands such as top, df, du to understand the system's operating status and resource usage.

What is the salary of Linux administrator? What is the salary of Linux administrator? Apr 17, 2025 am 12:24 AM

The average annual salary of Linux administrators is $75,000 to $95,000 in the United States and €40,000 to €60,000 in Europe. To increase salary, you can: 1. Continuously learn new technologies, such as cloud computing and container technology; 2. Accumulate project experience and establish Portfolio; 3. Establish a professional network and expand your network.

What are the main tasks of a Linux system administrator? What are the main tasks of a Linux system administrator? Apr 19, 2025 am 12:23 AM

The main tasks of Linux system administrators include system monitoring and performance tuning, user management, software package management, security management and backup, troubleshooting and resolution, performance optimization and best practices. 1. Use top, htop and other tools to monitor system performance and tune it. 2. Manage user accounts and permissions through useradd commands and other commands. 3. Use apt and yum to manage software packages to ensure system updates and security. 4. Configure a firewall, monitor logs, and perform data backup to ensure system security. 5. Troubleshoot and resolve through log analysis and tool use. 6. Optimize kernel parameters and application configuration, and follow best practices to improve system performance and stability.

Boost Productivity with Custom Command Shortcuts Using Linux Aliases Boost Productivity with Custom Command Shortcuts Using Linux Aliases Apr 12, 2025 am 11:43 AM

Introduction Linux is a powerful operating system favored by developers, system administrators, and power users due to its flexibility and efficiency. However, frequently using long and complex commands can be tedious and er

What is the main purpose of Linux? What is the main purpose of Linux? Apr 16, 2025 am 12:19 AM

The main uses of Linux include: 1. Server operating system, 2. Embedded system, 3. Desktop operating system, 4. Development and testing environment. Linux excels in these areas, providing stability, security and efficient development tools.

See all articles