
Linux/Unix
文章平均质量分 74
orzorz
这个作者很懒,什么都没留下…
展开
-
Ubuntu8.04系列一--系统安装篇 for note
Ubuntu8.04系列一--系统安装篇 for note转载 2010-10-06 13:20:00 · 826 阅读 · 0 评论 -
Shell脚本语法-摘录
转载: http://learn.akae.cn/media/ch31s05.html5. Shell脚本语法 请点评5.1. 条件测试:test [ 请点评命令test或[可以测试一个条件是否成立,如果测试结果为真,则转载 2011-08-03 11:55:28 · 582 阅读 · 0 评论 -
Bash shell中的位置参数$#,$*,$@,$0,$1,$2...及特殊参数$?,$-等的含义
zz http://nisoze.blog.163.com/blog/static/12484200820110128509637/$# 是传给脚本的参数个数$@ 是传给脚本的所有参数的列表$0 是脚本本身的名字$1是传递给该shell脚本的第一个参数转载 2011-10-03 04:34:31 · 734 阅读 · 0 评论 -
pthread并行编程
zzhttp://pages.cs.wisc.edu/~travitch/pthreads_primer.htmlIntroductionPOSIX threads (pthreads) are a standardized interface onoperating system threads.Compiling a pthreads ProgramReleva转载 2012-03-25 00:20:18 · 1719 阅读 · 0 评论 -
Manual: pthread_setaffinity_np, pthread_getaffinity_np
zzhttp://linux.frank4dd.com/en/man3/pthread_setaffinity_np.htmhttp://www.daemon-systems.org/man/pthread_getaffinity_np.3.htmlpthread_setaffinity_np and sched_setaffinity 样例程序NAME转载 2012-03-26 06:44:23 · 3514 阅读 · 1 评论 -
Linux下如何查看CPU信息, 包括位数和多核信息
zzLinux下如何查看CPU信息, 包括位数和多核信息# uname -aLinux euis1 2.6.9-55.ELsmp #1 SMP Fri Apr 20 17:03:35 EDT 2007 i686 i686 i386 GNU/Linux(查看当前操作系统内核信息)# cat /etc/issue | grep LinuxRe转载 2012-03-19 14:16:23 · 631 阅读 · 0 评论 -
shell变量的作用域
zzhttp://hi.baidu.com/ljwan12/blog/item/0e67b4affa83f3c47cd92adc.htmlwhile read linedo str[$i]=$line1 echo $i echo ${str[i]} let i=i+1done len=${#str[@]}echo $len转载 2012-04-30 15:27:36 · 794 阅读 · 0 评论 -
Introduction: Using diff and patch (tutorial)
zzIntroduction: Using diff and patch (tutorial)The commands diff and patch form a powerful combination. They are widely used to get differences between original files and updated files in such转载 2012-05-03 07:46:50 · 858 阅读 · 0 评论 -
Linux操作系统下/etc/hosts文件配置方法
http://bbs.openzj.com/thread-7200-1-1.html1、关于/etc/host,主机名和IP配置文件- U! }, P. F4 s( L4 Z/ J: \6 z' m; f: G( \Hosts - The static table lookup for host name(主机名查询静态表) ; X- v3 m8 i3 D5 \hosts文转载 2012-05-14 16:25:52 · 989 阅读 · 0 评论 -
用 grep 恢复误删的文本文件
zz http://www.vpsee.com/2010/08/using-grep-to-recover-text-files/作为长期的电脑使用者,肯定会有误删文件的经历,在 Mac OS X 和 Windows 上删除的文件都会默认进 “回收站”。在 Linux 上如果事先没有用别名(alias)修改默认的 rm 功能,rm 后文件就会丢失,幸运的是,在一般的删除文件操作中,转载 2012-08-20 05:02:34 · 1020 阅读 · 0 评论 -
进程和线程的区别
进程和线程的区别转载 2011-04-18 10:19:00 · 648 阅读 · 0 评论 -
Linux中vi显示中文乱码的问题
Linux中vi显示中文乱码的问题转载 2011-04-10 05:19:00 · 1132 阅读 · 0 评论 -
防止ssh登录后闲置时间过长而断开连接
因为工作环境就是在linux下,需要登录到服务器上,而当键盘、鼠标闲置时间过长的时候往往会被服务器给自动断开,前面做的一些事情就被打断了,这样就很麻烦,所以得想办法来防止被服务器给踢出来。转载 2011-04-05 07:39:00 · 4713 阅读 · 0 评论 -
Linux系统信息查看命令大全
Linux系统信息查看命令大全转载 2010-09-30 02:21:00 · 487 阅读 · 0 评论 -
Linux下gcc编译中关于头文件与库文件搜索路径相关问题
Linux下gcc编译中关于头文件与库文件搜索路径相关问题转载 2010-11-14 21:29:00 · 744 阅读 · 0 评论 -
通过liveCD进行ubuntu启动修复
通过liveCD进行ubuntu启动修复转载 2011-01-09 11:47:00 · 8938 阅读 · 0 评论 -
初学者指南:GRUB-系统引导管理器
RUB是多系统引导管理器,简单的说既能引导Linux,同时也能引导Windows;从LinuxSir.Org 讨论区近四年的观察来看,大多初学者并不能在短时间内掌握GRUB的用法,为了解决初学者在最短时间内掌握GRUB,重写GRUB入门文档还是有必要的;本文重点介绍了GRUB的menu.lst的写法,另外通过GRUB命令行引导系统也做了详述;这些无论是对Windows版本的WINGRUB还是Linux版本的GRUB都是适用的;原创 2011-01-09 08:40:00 · 723 阅读 · 0 评论 -
如何释放Ubuntu多余的空间?如何给Ubuntu扩容?
如何释放Ubuntu多余的空间?如何给Ubuntu扩容?转载 2010-11-17 16:23:00 · 3276 阅读 · 0 评论 -
Linux Jobs等前后台运行命令解
Linux Jobs等前后台运行命令解 fg、bg、jobs、&、ctrl + z、 ctrl+c、 kill、ps转载 2011-01-18 09:00:00 · 1132 阅读 · 0 评论 -
文献管理软件 JabRef 入门简介
文献管理软件 JabRef 入门简介转载 2010-11-22 18:43:00 · 5468 阅读 · 0 评论 -
Linux 文件和目录的属性
本文讲述的是文件或目录的属性,比如节点inode、文件类型、文件权限及归属;还对setuid、setgid及粘贴位进行了一般性的讲解。对ln 、chmod、umask、chown、chgrp 、touch 的用法也进行了比较详细的说明和举例;转载 2011-01-27 04:22:00 · 654 阅读 · 0 评论 -
精彩PuTTY 中文教程(解决乱码、X窗口、自动登陆等问题)
精彩PuTTY 中文教程(解决乱码、X窗口、自动登陆等问题)转载 2011-05-16 16:30:00 · 2623 阅读 · 0 评论 -
UNIX: vi Editor
zz http://www.ccsf.edu/Pub/Fac/vi.htmlGeneral IntroductionThe vi editor (short for visual editor) is a screen editor which isavailable on almost all Unix systems. Once you have learned vi, you w转载 2012-08-20 12:31:18 · 1051 阅读 · 0 评论 -
Bugfix for syntax error in gcc/c-parse.y (SESC simulator)
http://www.alteraforum.com/forum/showthread.php?t=22528http://www.microchip.com/forums/m416697-print.aspxThe reason for this might be that some new features have been added to gcc 4.x, and t转载 2012-08-23 09:10:40 · 1938 阅读 · 0 评论 -
Accessing a Fedora/CentOS Logical Volume from Ubuntu
zz http://www.linux-sxs.org/storage/fedora2ubuntu.htmlERROR:mount: unknown filesystem type 'LVM2_member'A while back, I started experimenting with Ubuntu after playing withFedora转载 2012-08-31 04:02:01 · 626 阅读 · 0 评论 -
Macvlan and Macvtap
Refer to Enabling host-guest networking with KVM, Macvlan and Macvtap!/bin/bashTESTHOST=www.google.comMACVLAN_PREFIX=macvlanMAC_ADDR_PREFIX=a0:36:9f:1a:57:fif [[ "$#" -ne 2 ]]; then原创 2014-03-29 07:58:42 · 1308 阅读 · 0 评论 -
Links Bookmark
https://gitorious.org/meshias/mainline/source/bcbe4cd08e752d7c20ea5796397642f44ff07205:src/examples/recvmsg.c#L101-156原创 2014-05-01 06:15:58 · 797 阅读 · 0 评论 -
script to update Ubuntu kernel to the latest mainline version
GitHub script downloadThe Linux Kernel Archiveshttp://askubuntu.com/questions/119080/how-to-update-kernel-to-the-latest-mainline-version-without-any-distro-upgradesudo apt-get updatesudo ap转载 2014-04-01 01:13:23 · 904 阅读 · 0 评论 -
ss: Display Linux TCP / UDP Network and Socket Information
ss: Display Linux TCP / UDP Network and Socket Information转载 2014-04-04 14:11:22 · 1253 阅读 · 0 评论 -
How to add or remove a static ARP entry on Linux
zzAdd static ARP entries when network is brought up转载 2014-04-10 13:21:26 · 1849 阅读 · 0 评论 -
Send a raw Ethernet frame in Linux (zz)
Send a raw Ethernet frame in Linux (GitHub)Explanation is hereSending raw Ethernet packets from a specific interface in C on Linux /** This program is free software: you can redistribut转载 2014-03-14 05:36:58 · 2426 阅读 · 0 评论 -
教程:Ubuntu 14.04 和 Windows 8.1 双系统安装步骤
Useful Links:Install Ubuntu 14.04 alongside Windows 8.1 in 10 easy steps教程:Ubuntu 14.04 和 Windows 8.1 双系统安装步骤Installing Ubuntu on a Pre-Installed Windows 8 (64-bit) System (UEFI Supported)UEFI P转载 2014-12-14 10:04:41 · 2247 阅读 · 1 评论 -
Installing Ubuntu 14.04 on a Pre-Installed Windows 8 (64-bit) System (UEFI Supported)
Useful Links:Install Ubuntu 14.04 alongside Windows 8.1 in 10 easy steps教程:Ubuntu 14.04 和 Windows 8.1 双系统安装步骤Installing Ubuntu on a Pre-Installed Windows 8 (64-bit) System (UEFI Supported)UEFI P转载 2014-12-14 08:55:19 · 2284 阅读 · 0 评论 -
Linux下通过EXPECT脚本自动执行ssh远程连接
由于经常需要从家里连到实验室的机器,但是中间需要一个中转,于是就需要连续两次进行ssh操作以及输入密码。加上家里网络不稳,经常会断,就又得重新登录。输入那么一长串的东西特别麻烦。于是觉得应该写一个脚本来自动登录,这样就可以带来极大的方便。 1 expect程序 用的Ubuntu,本身没带expect,安装。 sudo apt-get in原创 2009-07-27 05:59:00 · 12060 阅读 · 0 评论 -
Advanced TCP/IP - THE RAW SOCKET PROGRAM EXAMPLES
zz http://www.tenouk.com/Module43a.htmlAlso Refer http://csis.bits-pilani.ac.in/faculty/dk_tyagi/Study_stuffs/raw.htmlThis is a continuation from Part IV series,Advanced TCP/IP Pro转载 2014-03-11 07:57:36 · 1142 阅读 · 0 评论 -
理解inode
zz http://www.ruanyifeng.com/blog/2011/12/inode.html作者:阮一峰一、inode是什么?理解inode,要从文件储存说起。文件储存在硬盘上,硬盘的最小存储单位叫做"扇区"(Sector)。每个扇区储存512字节(相当于0.5KB)。操作系统读取硬盘的时候,不会一个个扇区地读取,这样效率太低,而是一次性连续读取多个转载 2014-02-28 12:39:18 · 722 阅读 · 0 评论 -
linux下挂载硬盘!
http://cache.baidu.com/c?m=9d78d513d99d1af31fa7837f7d01a6120e2580743da7c76574c3e54884125d56316cf4ba57356605c4b57c7070a85e2d9be47132690c7af1dd8a9f4baea68f7871d57223706bd91c50c419d89a1b7adc66cd0bb3f845a转载 2014-02-26 03:16:58 · 748 阅读 · 0 评论 -
Linux rm命令重定义,防止误删文件无法恢复
zz http://space.itpub.net/751371/viewspace-718307在linux环境下 rm -rf 慎用。命令敲得多了,常在河边走,难免会湿鞋昨天,一个手误,敲错了命令,把原本想要留的文件夹给rm -rf掉了几天心血全木有了,靠,死的心都有了有几种可能的找回的方法,比如下面两个链接的方法linux ext3 ext4文件系统下 恢复 rm -转载 2012-08-20 05:06:13 · 2343 阅读 · 1 评论 -
linux自动备份shell(使用全备份,增量备份策略)
zz http://www.cnblogs.com/coffee_cn/archive/2010/03/26/1697038.html在cron里设置,每周一凌晨2点执行(每周一全备份,其余时间增量备份)#vi backup.sh#!/bin/bash# definedayofweek=`date "+%u"`today=`date "+%Y%m%d"`sourc转载 2012-08-20 06:51:52 · 5279 阅读 · 1 评论 -
使用extundelete恢复linux ext3 ext4文件系统下由 rm -rf 误删除文件
zz http://qyiyunso.blog.163.com/blog/static/350776862010826115537113/今天一时手快 rm -rf .* ,删除了一个重要邮件目录,幸好通过extundelete恢复了。记下操作流程:1.准备工作主要通过 extundelete 0.2.0完成恢复需要依赖两个包sudo aptitud转载 2012-08-20 05:01:42 · 1564 阅读 · 0 评论