Quantcast
Channel: CodeSection,代码区,Linux操作系统:Ubuntu_Centos_Debian - CodeSec
Browsing all 11063 articles
Browse latest View live

Image may be NSFW.
Clik here to view.

How to Enable Low Graphics Mode on Ubuntu

With the release of Ubuntu 16.04.1 LTS , Unity 7 got a spiffy new low-graphics mode. Ubuntu 16.04.1 LTS (and up) enables low graphics mode on the Unity desktop automaticallywhen software rendering is...

View Article


Image may be NSFW.
Clik here to view.

Twice the bits, twice the trouble: vulnerabilities induced by migrating to...

Twice the bits, twice the trouble: vulnerabilities induced by migrating to 64-bit platforms Wressnegger et al. CCS 2016 64-bit is not exactly new anymore, but many codebases which started out as...

View Article


Image may be NSFW.
Clik here to view.

Linux Shell基础-Bash变量

一 用户自定义变量 1 变量定义 name=”shen chao” 注意 变量名不能以数字开头,可以不加双引号,但如果有空格,就必须加双引号或单引号 2变量叠加 如果需要增加变量的值,那么可以进行变量值的叠加,形式可以是 3 查看变量set 4 删除变量unset 变量名 比如unset aa 二 环境变量 1 环境变量是什么...

View Article

Image may be NSFW.
Clik here to view.

Linux Shell基础-脚本执行方式和Bash基本功能

一 概述 1 Shell是一个命令行解释器,它为用户提供了一个向内核发送请求以便运行程序的界面系统级程序 Shell还是一个功能强大的编程语言,易编写,易调试,灵活性较强,Shell是解释执行的脚本语言,在Shell中可以直接调用linux系统命令 2 Shell的分类 Bourne Shell:从1979年起Unix就开始使用Bourne Shell,Bourne Shell的主文件名为sh C...

View Article

Image may be NSFW.
Clik here to view.

Linux下GCC编译过程及静态链接库和动态链接库

一 gcc编译过程 我们知道gcc是一个强大的编译器,很多linux下的GNU工具都是用C语言写的,并且用gcc编译的,那么gcc的编译过程是怎样的呢,先来看一个总的流程图,我自己简单画的,凑合着看 1首先是源文件经过预加载变成了.i结尾的文件,可以通过-E这个参数来生成这个中间文件,这里主要是把一些include的头文件和一些宏定义,放到源文件中。...

View Article


Image may be NSFW.
Clik here to view.

Linux文件系统管理详解

一 分区 1 分区类型 主分区:总共最多只能分4个 扩展分区:只能有1个,也算主分区的一种,也就是说主分区+扩展分区最多只能有4个,但是扩展分区不能存储数据和格式化,必须再划分为逻辑分区才可用 逻辑分区:逻辑分区是在扩展分区中划分的,如果是IDE硬盘,linux最多支持59个逻辑分区,如果是SCSI硬盘,Linux最多支持11个逻辑分区 2 分区表示方法...

View Article

Image may be NSFW.
Clik here to view.

Linux Shell编程-流程控制

一 if语句 1 单分支if语句 if [ 条件判断式 ];then 程序 fi 或者 if [ 条件判断式 ] then 程序 fi 注意点: if语句使用fi结尾,跟一般语言使用大括号结尾不同 中括号和条件判断式直接必须有空格 then后面跟符合条件之后执行的程序,可以放在[]之后用;分隔,也可以换行写入,就不需要;了 例子:判断分区使用率...

View Article

Image may be NSFW.
Clik here to view.

Linux Shell编程-条件判断

1 按照文件类型进行判断 -b 文件:判断该文件是否存在,并且是否为块设备文件(是块设备文件为真) -c 文件:判断该文件是否存在,并且是否为字符设备文件(是字符设备文件为真) -d 文件:判断该文件是否存在,并且是否为目录文件(是目录文件为真) -e 文件:判断该文件是否为真(存在为真) -f 文件:判断该文件是否存在,并且是否为普通文件(是普通文件为真) -L...

View Article


Image may be NSFW.
Clik here to view.

Linux 爆新漏洞,长按回车70秒可获得 root 权限

linux 爆新漏洞,长按回车70秒可获得 root 权限 21小时前来源:开源中国 GreenPlum 数据库性能测试与分析>>> php?url=0Exfzddd7z" alt="Linux 爆新漏洞,长按回车70秒可获得 root 权限"...

View Article


Image may be NSFW.
Clik here to view.

Get the sneaky powerful Raspberry Pi 3 and all the training you’ll need for ...

Over the four years since it first hit store shelves, the plucky, low-cost, credit card-sized Raspberry Pihas tickled the curiosity of kids and tech tinkerers alike with its under-the-radar power and...

View Article

Image may be NSFW.
Clik here to view.

Assessing the current state of Docker Engine & Tools on Raspberry Pi

Are you planning for your next Docker Workshop on Raspberry Pi? Are you curious to know whether the tools like Docker Machine, Docker Compose, Dockerfile, 1.12 Swarm Mode, High Availability & Load...

View Article

Image may be NSFW.
Clik here to view.

Raspberry Pi powered anti-tank rocket launcher prototype shown

The Raspberry Pi Foundation was set up "to put the power of digital making into the hands of people all over the world". The tiny credit card sized (and smaller) computer boards are designed to...

View Article

Image may be NSFW.
Clik here to view.

Linux Shell编程-字符截取和处理命令

linux Shell编程-字符截取和处理命令 一 cut命令 cut 选项 文件名 -f 列号,列号 :提取第几列,多个列用,分隔 -d 分隔符:按照指定分隔符分隔列 比如有一个文件student.txt 注意,每个列直接用的TAB键 cut -f 2,3 student.txt 截取第2列和第3列 cut -d “:”-f 1,3 /etc/passwd cut命令的局限 如果想以”...

View Article


Image may be NSFW.
Clik here to view.

Linux权限管理ACL权限,文件特殊权限,chattr权限,sudo权限

一 ACL权限...

View Article

只为好玩:Linux 之父的成功学

你了解 linux 之父林纳斯托瓦兹(Linus Torvalds)吗?如果你和我一样,在大学课程或者其他地方见过这样一段语焉不详的文字:Linux是一款流行的 操作系统 ,由芬兰大学生林纳斯在1991年发布。那么《只是为了好玩》这本书非常适合你。 整本书除了揭秘林纳斯究竟是怎么样成长为一个大神之外,还解决了我个人的一个困惑:为什么芬兰总是不紧不慢,不急不缓地交出一款款让 互联网...

View Article


Image may be NSFW.
Clik here to view.

Linux文本编辑器Vim的一般用法

vim的前身是vi,vim是vi的加强版,现在基本都用vim了,它的作用的建立,编辑,显示文本文件,vim没有菜单,只有命令,vim的用法还是非常多的,今天我只分享vim的常用用法,以满足日常工作需求为主。 先来看一张vim的使用图,借用兄弟连课件里的图:...

View Article

Image may be NSFW.
Clik here to view.

Linux常用网络命令和关机重启命令

今天这篇文章有点特殊,为什么特殊呢,因为今天学到的一些网络命令在我这个linux环境可能无法实践,有些人可能会说,环境有问题就去改啊,今天只能大概总结出来,无法像之前文章那样,给出实践的截图,而只是简要说明,好,下面看第一个命令 一 write:给用户发信息 比如我想给fuqiang用户发信息write fuqiang,回车,然后就可以输入想要发送的内容...

View Article


Image may be NSFW.
Clik here to view.

Linux压缩和解压缩命令

继续来看下linux下压缩和解压缩的命令 一 gzip:压缩文件,压缩后的文件是.gz格式的文件 我先创建一个boduo的文件,然后对boduo文件进行压缩 我们发现生成了一个boduo.gz,原来的boduo文件没了 二 gunzip:解压文件,跟gzip对应的 我们对刚刚的boduo.gz文件进行解压缩 或者用gzip -d命令,效果跟gunzip效果是一样的。 三bzip2:压缩文件...

View Article

Image may be NSFW.
Clik here to view.

Den Haag Sprint

Last month I (Cody Garver) had the pleasure of being sponsored by Canonical to attend the Ubuntu Snappy Sprint in Den Haag, Netherlands. During the Sprint As a member of the Snappy Format Technical...

View Article

Image may be NSFW.
Clik here to view.

What To Do When Ubuntu Can't Use Free Unallocated Disk Space

Introduction I have received a number of comments with regards to the procedure for dual booting windows 10 and Ubuntu. Some people have noticed that the free disk space they created is not available...

View Article
Browsing all 11063 articles
Browse latest View live