【linux 命令学习笔记】教程文章相关的互联网学习教程文章

Linux学习笔记--另一种方法安装Nginx服务器【图】

Nginx:专为性能优化而开发,大多用于企业web服务。 1:先在cento7上编译yum并安装相关软件包2:使用nginx-1.12.0.tar.gz软件包进行编译安装3:安装完后的默认信息如下: 1:默认安装目录:/usr/local/nginx 2:默认日志:/usr/local/nginx/logs 3:默认监听:80 4:默认web目录:/usr/local/nginx/html 4:网站没有配置域名,直接使用IP地址在客户端访问测试:

Linux学习笔记01【代码】【图】

概念 何为shell Shell 是指“提供给使用者使用界面”的软件(命令解析器),类似于 DOS 下的 command(命令行)和后来的 cmd.exe 。普通意义上的 Shell 就是可以接受用户输入命令的程序。它之所以被称作 Shell 是因为它隐藏了操作系统底层的细节。同样的 UNIX/Linux 下的图形用户界面 GNOME 和 KDE,有时也被叫做“虚拟 shell”或“图形 shell”。 Linux所处位置:linux图形界面注意事项 1.Linux 系统中,大小写字母代表意义不一样...

Linux学习笔记之详解linux软连接和硬链接【代码】

0x00 链接文件 Linux链接分两种,一种被称为硬链接(Hard Link),另一种被称为符号链接(Symbolic Link)。默认情况下,ln命令产生硬链接。 【软连接】 另外一种连接称之为符号连接(Symbolic Link),也叫软连接。软链接文件有类似于Windows的快捷方式。它实际上是一个特殊的文件。在符号连接中,文件实际上是一个文本文件,其中包含的有另一文件的位置信息。 链接文件甚至可以链接不存在的文件,这就产生一般称之为"断链"的问题...

linux学习笔记

一.linux与windows的区别: 1.linux严格区别大小写 2.linux中所有内容皆文件,包括硬件 3.linux不靠扩展名区分文件类型 4.Windows下的程序不能直接在linux中直接安装和运行 二.字符界面的优势: 1.占用的系统的资源更少 2.减少出错和攻击 三.分区类型 主分区:最多只能有四个 扩展分区: 最多只能有一个 主分区加扩展分区最多有四个 不能写入数据,只能包括逻辑分区(逻辑分区只能有23个) 格式化:写入文件系统...

Linux学习笔记(6)——打包压缩与搜索命令【代码】

打包压缩与搜索命令 1.tar命令 tar 命令用于对文件进行打包压缩或解压,格式为“tar [选项] [文件]”参数 作用-c 创建压缩文件-x 解开压缩文件-t 查看压缩包内有哪些文件-z 用Gzip压缩或解压-j 用bzip2压缩或解压-v 显示压缩或解压的过程-f 目标文件名-p 保留原始的权限与属性-P 使用绝对路径来压缩-C 指定解压到的目录一般使用“tar -czvf 压缩包名称.tar.gz 要打包的目录”命令把指定的文件进行打包压缩;相应的解压命令为“tar -x...

Linux学习笔记(2)--Linux 基本操作【图】

1.1 Listing files and directories ls (list) When you first login, your current working directory is your home directory. Your home directory has the same name as your user-name, for example, ee91ab, and it is where your personal files and subdirectories are saved. To find out what is in your home directory, type % ls The ls command ( lowercase L and lowercase S ) lists the contents of your current...

Linux学习笔记(3)-- 文档操作

2.1 Copying Files cp (copy) 复制 cp file1 file2 -- is the command which makes a copy of file1 in the current working directory and calls it file2 What we are going to do now, is to take a file stored in an open access area of the file system, and use the cp command to copy it to your unixstuff directory. First, cd to your unixstuff directory. % cd ~/unixstuff Then at the UNIX prompt, type, % cp /v...

Linux学习笔记(4)-- Linux Redirection

3.1 Redirection Most processes initiated by UNIX commands write to the standard output (that is, they write to the terminal screen), and many take their input from the standard input (that is, they read it from the keyboard). There is also the standard error, where processes write their error messages, by default, to the terminal screen. We have already seen one use of the cat command to write t...

Linux学习笔记(5)-- Wildcards

4.1 Wildcards The * wildcard The character * is called a wildcard, and will match against none or more character(s) in a file (or directory) name. For example, in your unixstuff directory, type % ls list* This will list all files in the current directory starting with list.... Try typing % ls *list This will list all files in the current directory ending with ....list The ? wildcard The character ...

Linux学习笔记(6)-- File system【图】

5.1 File system security (access rights) In your unixstuff directory, type % ls -l (l for long listing!) You will see that you now get lots of details about the contents of your directory, similar to the example below.Each file (and directory) has associated access rights, which may be found by typing ls -l. Also, ls -lg gives additional information as to which group owns the file (beng95 in the f...

Linux学习笔记(7)-- Other useful UNIX commands

Other useful UNIX commands quota All students are allocated a certain amount of disk space on the file system for their personal files, usually about 100Mb. If you go over your quota, you are given 7 days to remove excess files. To check your current quota and how much of it you have used, type % quota -v df The df command reports on the space left on the file system. For example, to find out ho...

Linux学习笔记(8)-- Compiling

7.1 Compiling UNIX software packages We have many public domain and commercial software packages installed on our systems, which are available to all users. However, students are allowed to download and install small software packages in their own home directory, software usually only useful to them personally. There are a number of steps needed to install the software.Locate and download the so...

Linux学习笔记(9)-- System Variables

8.1 UNIX Variables Variables are a way of passing information from the shell to programs when you run them. Programs look "in the environment" for particular variables and if they are found will use the values stored. Some are set by the system, others by you, yet others by the shell, or any program that loads another program. Standard UNIX variables are split into two categories, environment vari...

趣谈Linux操作系统学习笔记:内存管理(下):为客户保密,项目组独享会议室封闭开发(第21讲)【图】

一、分段机制 1、分段机制的原理图2、段选择子3、段偏移量例如,我们将上面的虚拟空间分成以下 4 个段,用 0~3 来编号。每个段在段表中有一个项,在物理空间中,段的排列如下图的右边所示。 4、段表#define GDT_ENTRY_INIT(flags, base, limit) { { { .a = ((limit) & 0xffff) | (((base) & 0xffff) << 16), .b = (((base) & 0xff0000) >> 16) | (((flags) & 0xf0ff) << 8) | ((limit) & 0xf0000) | ((base) & 0xff000000...

linux就该这么学 第一天学习笔记

题外话 在每天的网上冲浪中,一次无意间的点击,发现了linux就该这么学的网站,然后就看了一晚上,当时还是学生的我特别想要参加培训,可是碍于眼前的经济状况,只得将这个想法深深的藏在了心里,并加了一下网站的qq学习交流群,我当时加得还是比较早,是一个G群,现在已经有三十多个群了。后来也没有再去想过这方面的事情,因为工作中并没有用到linux系统,也就没有学习这个的动力,只是从网上了解到这是一个服务器的操作系统罢了...