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

为compilation-buffer增加交互功能.org

为compilation-buffer增加输入功能 Emacs的 compile 命令是一个未被充分利用的工具. 它允许你运行任意的构建工具并且为多种编程语言提供错误高亮与快速掉转到错误的功能. 但是许多的Emacs使用者依然习惯于切换到终端下运行make,lein test以及bundle exec. 然而 compile 命令有一个限制,那就是compilation...

View Article


Emacs Live (2013)

MM""""""""`M M""MMMMMMMM M""M M""MMMMM""M MM""""""""`M MM mmmmmmmM M MMMMMMMM M M M MMMMM M MM mmmmmmmM M` MMMM 88d8b.d8b. .d8888b. .d8888b. .d8888b. M MMMMMMMM M M M MMMMP M M` MMMM MM MMMMMMMM...

View Article


RPM和deb的分裂有望被Flatpak和snap替代

linux社区出现了两种 新的应用打包格式 ,其一是Ubuntu力推的snap格式,另一种是Red Hat主导开发的Flatpak格式,两种包格式都利用了沙盒隔离应用,增强安全性。Flatpak刚刚发布了 第一个正式版本 ,首个支持Flatpak的发行版是Fedora 24,其它发行版Arch、Debian和Mageia和Ubuntu也可以 安装 。Flatpak是Red...

View Article

从零开始使用Atom

作为git粉,迟早还是要转到atom的,不如趁早(其实现在也不算早了) download 没啥好说的,官网下载mac版,解压,拷贝到app下面 apm 安装atom之后,就会自带个命令行工具apm,这个不能更赞了,很多事情就可以脚本化来做了. apm - Atom Package Manager powered by https://atom.io 支持的命令列表 clean, config,...

View Article

Image may be NSFW.
Clik here to view.

Fedora 24 is here. Go ahead dive in

ReviewFedora 24 is here , packing not just the standard group of changes familiar to any distro update, but also changes to fundamental elements. The biggest news in the default desktop version that I...

View Article


Image may be NSFW.
Clik here to view.

Reflections on my first live webcast

This morning, I participated in the O’Reilly Emerging Languages Webcast with my “ Rust from a Scripting Background ” talk. Here’s how it went. Preparation I was contacted about a month before my...

View Article

Image may be NSFW.
Clik here to view.

迁移到LibreOffice令意大利军方节省高达2900万欧元费用

意大利军方去年的大胆宣布,他们将尝试从专有的微软Office产品迁移到开源的LibreOffice。意大利国防部现在预计节省出的费用高达2900万欧元。目前来看,LibreOffice是政府机构可以做的最明智的选择。意大利国防部宣布,他们预计迁移到LibreOffice开源软件之后,未来数年节省的费用在2600万到2900万欧元,在提升生产率同时,他们也采用开放文档格式(ODF)。...

View Article

Behind the new Fedora Developer Portal

Are you looking for projects that could use your help? Fedora Developer Portal is a great project to start with, even if you’ve never contributed before. One of the easiest ways to contribute, but...

View Article


Image may be NSFW.
Clik here to view.

Better Comments or tooling as a time sink

The other day my friend and fellow CS Ed Blogger Alfred Thompson wrote about Better Comments , an extension for visual studio that displays comments that are marked up with special characters in order...

View Article


Image may be NSFW.
Clik here to view.

atexit函数和两种特殊文件权限位

atexit函数 atexit函数的原型如下 void atexit(void (*func)(void)) 它是一个参数为 返回值和参数均为空的 函数指针的函数 ,含义是当前进程结束之前执行参数函数指针所指向的函数,使用的时候要在main中注册,一次可以注册很多函数,函数的执行顺序与注册的先后有关, 关系恰好相反, 第一个注册的函数反而是最后一个执行。下面是执行实例。 1...

View Article

Image may be NSFW.
Clik here to view.

Ubuntu 16.04 LTS下载及各衍生版下载

Ubuntu 16.04 LTS (Xenial Xerus),这是一个长期支持版本,官方会提供长达5年的技术支持(包括常规更新/Bug修复/安全升级),一直到2021年4月份,而且后续会按惯例发布16.04.1、16.04.2、16.04.3等升级版本。 Ubuntu 16.04最大的变化就是采用了linux 4.4版系统内核,同时对几乎所有系统应用都进行了升级,包括LibreOffice...

View Article

Image may be NSFW.
Clik here to view.

OpenSwitch finds critical home at Linux Foundation

linux Foundation goes all in on open-source network operating system project The OpenSwitch Project took a significant development step this week when it became the first full feature network operating...

View Article

【Centos】:用crontab修正时间

最近测试系统突然出了点问题,项目时间是东一时区,系统时间是东八区的,各种定时任务皆暴走! crontab可以解决这个问题 创建一个crontab文件 vim crontab 并写入0 0 * * * root ntpdate asia.pool.ntp.org >> /var/log/ntpdate.log 将crontab的默认文件切换到新创建的文件 crontab crontab...

View Article


Image may be NSFW.
Clik here to view.

Linux-内存占用过高,应用占用很少,slab、cache过高

现系统内存耗尽了,但是通过top或者ps命令看到所有应用或系统进程内存占用率总和不到10%。 [@storm-yd8325 ~]# free -m total used free shared buffers cached<br> Mem: 64416 61273 3142 0 419 2597 -/+ buffers/cache: 58256 6159 Swap: 8189 0...

View Article

马哥教育网络班20期+第3周课程练习

1、列出当前系统上所有已经登录的用户的用户名,注意:同一个用户登录多次,则只显示一次即可。 $ who |cut -d" " -f1 |uniq 2、取出最后登录到当前系统的用户的相关信息。 $ last |head -1 3、取出当前系统上被用户当作其默认shell的最多的那个shell。 $ cut -d":" -f7 /etc/passwd |uniq -c |sort -n |tail -1...

View Article


Image may be NSFW.
Clik here to view.

Learning about scenarios

Ciarrai, Diana and Renata have been writing about their research on scenarios! Scenarios follow from personas (see week 2). If personas tell us who uses the software, the scenarios tell us how and why...

View Article

Image may be NSFW.
Clik here to view.

Centos部署Samba企业文件共享服务

Centos部署Samba企业文件共享服务 声明:本文参考了网上部分资料加作者实验总结 目录: 1、Samba服务概述: 1.1、Samba的原理 1.2、NETBIOS协议 2、Samba 应用环境 3、samba服务 3.1、samba的安装包: 3.2、samba的进程文件: 3.3、samba的文件: 4、主要配置文件smb.conf 4.1、samba配置简介 4.2、Global...

View Article


find常用用法

find: 实时查找工具,通过遍历指定路径下的文件系统完成文件查找; 工作特点: 相对于locate查找速度略慢; 精确查找; 实时查找; 语法: find [查找路径] [OPTION]… [查找条件] [处理动作] 查找路径:指定具体目标路径;默认为当前目录; 查找条件:指定的查找标准,可以文件名、大小、类型、权限等标准进行;默认为找出指定路径下的所有文件;...

View Article

Linux内核之高速页缓存

一/概述页高速缓存(page cache) 1.页高速缓存是linux内核所使用的主要磁盘高速缓存。 2.页高速缓存中可能包含的内容: a,含有普通文件数据的页; b,含有目录的页; c,含有直接从块设备文件读出的数据的页; d,含有用户态进程数据的页; e,属于特殊文件系统文件的页。 注:内核的代码和内核数据不必从磁盘 读也不必写入磁盘,因此页高速缓存中不可能有。 二/页高速缓存的组织...

View Article

Monitoring and Tuning the Linux Networking Stack: Receiving Data

TL;DR This blog post explains how computers running the linux kernel receive packets, as well as how to monitor and tune each component of the networking stack as packets flow from the network toward...

View Article
Browsing all 11063 articles
Browse latest View live