Linux Linux applications on the basis of the basic application

Linux foundation application

 

Write command, tab completion 2119731621
1.Linux see the machine ip: ifconfig

2. Command (liunx strict capitalization and spaces)
can download the card command yum:
yum install command name of the package (net-tools.x86_64)
If the installation error: can not access card
solutions:
1. Go to the network card configuration file: cd / etc / sysconfig / network-scripts
in the following directory:
the ifcfg-ensxx network transmission
ifdow network receiving circuit
2. open: vim | vi card name (the ifcfg-ENS)
3. ONBOOT = on modified card is Yes = the ONBOOT
4. restart: service network restart

Extended:
vi filename into edit mode
ctrl + c or shift +:: wq to maintain and exit: q quit: q Force Quit!
Vi want to edit, then hold down the inset button to edit or i
vi and vim of the difference
vi editor is standard editor for Unix and Linux systems all, he is equivalent to notepad windows system, as
its latest powerful not inferior to any text editor. He is our use Linux systems indispensable tool.
Since any version of Unix and Linux systems, vi editor is exactly the same, after learning it,
you will be unimpeded in the Linux world.
vim has the ability to program editing, font color discrimination may grammatical correctness,
convenient programming; because the program is simple, editor at a fairly fast.
vim can be used as an upgraded version of vi, he can use a variety of colors way to show some special information.
vim syntax will automatically determines the execution of the program according to the file type extension, or at the beginning of the information in the file, determining contents of the file,
and then to display the program code with the color information in general. vim it added a lot of extra features, such as support for regular expression search,
multi-file editor, block copy and so on. This is a great feature for when we modify some configuration files work on Linux.

3. View the file properties
command: ll and ls -1

linux first letter meanings:
When [d] is a directory is
when is [-] is a file
when it is a [l] is connected to the document (link file);
if it is expressed as [b] means inside the paper an interface for storage devices (random saving means)
when it is [c] is expressed as document which means serial port device, such as a keyboard. Mouse (one reading device)
Next, a set of three, and [are] rwx combination of three parameters.
Wherein, [r] Representative read (Read). [W] Representative writable. . [X] represents the executable (execute)
It should be noted that the location of these three privileges do not change, if there is no authority, there will be a minus [-] it

 

Write command, tab completion 2119731621
1.Linux see the machine ip: ifconfig

2. Command (liunx strict capitalization and spaces)
can download the card command yum:
yum install command name of the package (net-tools.x86_64)
If the installation error: can not access card
solutions:
1. Go to the network card configuration file: cd / etc / sysconfig / network-scripts
in the following directory:
the ifcfg-ensxx network transmission
ifdow network receiving circuit
2. open: vim | vi card name (the ifcfg-ENS)
3. ONBOOT = on modified card is Yes = the ONBOOT
4. restart: service network restart

扩展:
vi 文件名进入编辑模式
ctrl+c或者shift+: :wq保持并退出 :q退出 :q!强制退出
vi 想要编辑的话需要按住inset按钮进行编辑或者i
vi和vim的区别
vi编辑器是所有Unix及Linux系统下标准的编辑器,他就相当于windows系统中的记事本一样,
它的强大不逊色于任何最新的文本编辑器。他是我们使用Linux系统不能缺少的工具。
由于对Unix及Linux系统的任何版本,vi编辑器是完全相同的,学会它后,
您将在Linux的世界里畅行无阻。
vim 具有程序编辑的能力,可以以字体颜色辨别语法的正确性,
方便程序设计;因为程序简单,编辑速度相当快速。
vim可以当作vi的升级版本,他可以用多种颜色的方式来显示一些特殊的信息。
vim会依据文件扩展名或者是文件内的开头信息, 判断该文件的内容而自动的执行该程序的语法判断式,
再以颜色来显示程序代码与一般信息。vim里面加入了很多额外的功能,例如支持正则表达式的搜索、
多文件编辑、块复制等等。 这对于我们在Linux上进行一些配置文件的修改工作时是很棒的功能。

3.查看文件属性
命令:ll 与ls -1

linux第一个字母的含义:
当为【d】则是目录
当为【-】则是文件
当为【l】则是连接文档(link file);
当为【b】则表示为装置文件里面的可供存储的接口设备(可随机存钱装置)
当为【c】则表示为装置文件里面的串行端口设备,例如键盘。鼠标(一次性读取装置)
接下来三个一组,且均为【rwx】的三个参数的组合。
其中,【r】代表可读(read).【w】代表可写。【x】代表可执行(execute).
要注意的是,这三个权限的位置不会改变,如果没有权限,就会出现减号【-】而已

 

Guess you like

Origin www.cnblogs.com/cbvcbc/p/12064643.html