fengxin215

  博客园 :: 首页 :: 新随笔 :: 联系 :: 订阅 :: 管理 ::

文章分类 -  linux技巧

1 2 下一页

摘要:1、编辑文件 /etc/rc.localvim /etc/rc.local#!/bin/sh## This script will be executed *after* all the other init scripts.# You can put your own initialization 阅读全文
posted @ 2016-12-10 13:13 fengxin215 阅读(408) 评论(0) 推荐(0)

摘要:https://linux.cn/article-6987-1.html 阅读全文
posted @ 2016-10-24 14:06 fengxin215 阅读(79) 评论(0) 推荐(0)

摘要:对于每个系统管理员或网络管理员来说,每天要监控和调试 Linux 系统性能问题都是非常困难的工作。我已经有5年 Linux 管理员的工作经历,知道如何监控系统使其保持正常运行。为此,我们编写了对于 Linux/Unix 系统管理员非常有用的并且最常用的20个命令行系统监视工具。这些命令可以在所有版本 阅读全文
posted @ 2016-10-24 13:41 fengxin215 阅读(89) 评论(0) 推荐(0)

摘要:一、 网络性能评估工具Iperf 网络性能评估主要是监测网络带宽的使用率,将网络带宽利用最大化是保证网络性能 的基础,但是由于网络设计不合理、网络存在安全漏洞等原因,都会导致网络带宽利用率不高。要找到网络带宽利用率不高的原因,就需要对网络传输进行监控,此 时就需要用到一些网络性能评估工具,而Iper 阅读全文
posted @ 2016-05-21 18:42 fengxin215 阅读(187) 评论(0) 推荐(0)

摘要:需要修改的文件/etc/default/locale#sudo vim /etc/default/locale中文设置为:LANG="zh_CN.UTF-8"LANGUAGE="zh_CN:zh"修改为:LANG="en_US.UTF-8"LANGUAGE="en_US:en"将相应的zh改成en,... 阅读全文
posted @ 2015-12-22 14:56 fengxin215 阅读(120) 评论(0) 推荐(0)

摘要:1 由dhcp服务器分配动态ip的设置auto eth0 iface eth0 inet dhcpauto wlan0http://write.blog.csdn.net/postedit/40002159iface wlan0 inet dhcpwpa-conf /etc/wpa_supplica... 阅读全文
posted @ 2015-11-20 13:13 fengxin215 阅读(443) 评论(0) 推荐(0)

摘要:$sudo apt-get install enca 2.查看当前文件编码 enca -L zh_CN ip.txt Simplified Chinese National Standard; GB2312 Surrounded by/intermixed with non... 阅读全文
posted @ 2015-10-10 17:14 fengxin215 阅读(904) 评论(0) 推荐(0)

摘要:Ubuntu系统使用的gcc版本随着发布版本的不同而不同,可以改变系统的gcc来适应编译环境的需求。先看看我们系统用的gcc和g++是什么版本gcc -v可以获得的信息如下gcc version 4.4.6 (Ubuntu/Linaro 4.4.6-11ubuntu2)如果我们想使用gcc4.5怎么... 阅读全文
posted @ 2015-10-09 17:14 fengxin215 阅读(177) 评论(0) 推荐(0)

摘要:https://www.ibm.com/developerworks/cn/linux/l-tsl/ 阅读全文
posted @ 2014-12-04 10:19 fengxin215 阅读(82) 评论(0) 推荐(0)

摘要:给函数配色修改syntax/c.vim文件方法一"highlight Functionssyn match cFunctions "\[^()]*)("me=e-2syn match cFunctions "\\s*("me=e-1hi cFunctions guifg=green cterm=bo... 阅读全文
posted @ 2014-11-13 11:14 fengxin215 阅读(104) 评论(0) 推荐(0)

摘要:在.vimrc中添加以下代码后,重启vim即可实现按TAB产生4个空格:set ts=4 (注:ts是tabstop的缩写,设TAB宽4个空格)set expandtab对于已保存的文件,可以使用下面的方法进行空格和TAB的替换:TAB替换为空格::set ts=4:set expandtab:%r... 阅读全文
posted @ 2014-08-05 14:16 fengxin215 阅读(99) 评论(0) 推荐(0)

摘要:前言 本文旨在帮助学习vim的新手快速掌握vim的基本操作。本文整理自《TheLinuxCommandLine》中《AGentleIn... 阅读全文
posted @ 2014-07-18 18:00 fengxin215 阅读(412) 评论(0) 推荐(0)

摘要:$ python -m SimpleHTTPServer这命令启动了Python的SimpleHTTPServer模块。命令执行后将在本机8000端口开放HTTP服务,在其他能访问本机的机器的浏览器打开http://ip:8000即打开一个目录列表,点击即可下载。 阅读全文
posted @ 2014-06-30 09:10 fengxin215 阅读(139) 评论(0) 推荐(0)

摘要:如果linux安装了gnome,那么系统自带了一款截屏软件 gnome-screenshot,使用起来很方便,功能齐备,支持命令行。简单介绍如下。功能对屏幕,窗口,或自定义的区域进行截图。选项-w 抓取当前活动窗口-a 抓取自定义的区域-b 包含窗口的边框-B 去除边框-d N 等待N秒后截图-e ... 阅读全文
posted @ 2014-06-16 14:45 fengxin215 阅读(462) 评论(0) 推荐(0)

摘要:1、为你的guest新增一块大容量的虚拟硬盘,并在guest的HDD设置里面把它挂在IDE的primary slave接口上,原来的硬盘一般应该在primary master上面,当然你也可以随便挂,但会影响到后面的硬盘编号。2、从http://gparted.sourceforge.net/下载G... 阅读全文
posted @ 2014-06-16 14:43 fengxin215 阅读(150) 评论(0) 推荐(0)

摘要:解释一下Linux上free命令的输出。 下面是free的运行结果,一共有4行。为了方便说明,我加上了列号。这样可以把free的输出看成一个二维数组FO(Free Output)。例如:FO[2][1] = 24677460FO[3][2] =10321516 1 2 3 4 5 61 tota... 阅读全文
posted @ 2014-05-28 18:51 fengxin215 阅读(137) 评论(0) 推荐(0)

摘要:在中断执行:gnome-session-properties,在弹出的对话框中设置要启动的程序gnome-session-properties对应的配置文件在.config/autostart/目录下 阅读全文
posted @ 2014-05-28 13:49 fengxin215 阅读(97) 评论(0) 推荐(0)

摘要:1、下载安装包:http://pinyin.sogou.com/linux/2、添加fcitx源,升级fcitx到4.2.6或以上:sudoadd-apt-repositoryppa:fcitx-team/nightly3、刷新源:sudoapt-getupdate4、升级fcitx:sudoapt... 阅读全文
posted @ 2014-05-20 16:09 fengxin215 阅读(132) 评论(0) 推荐(0)

摘要:方法一:VBoxManage internalcommands sethduuid vb_windowsxp.vdi方法二:VBoxManage clonevdi 阅读全文
posted @ 2014-05-07 15:42 fengxin215 阅读(85) 评论(0) 推荐(0)

摘要:采用LiveCD启动Ubuntu,之后就在Ubuntu下操作。 打开终端:#切换到root权限ubuntu@ubuntu-laptop:~$sudo-i#找你ubuntu10.04所在分区root@ubuntu-laptop:~#fdisk-l看到的信息:Disk/dev/sda:500.1GB,5... 阅读全文
posted @ 2014-04-01 14:23 fengxin215 阅读(402) 评论(0) 推荐(0)

1 2 下一页