![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Linux - Miscellaneous
文章平均质量分 52
thedayyourejectme
这个作者很懒,什么都没留下…
展开
-
How to make a process run after the user logs out?
nohup nohup sort sales.dat &2009-01-04 18:05:28 · 90 阅读 · 0 评论 -
Adding a startup script to be run at bootup
Ubuntu 1. sudo vi /etc/init.d/workDriveMap 2. chmod 755 /etc/init.d/workDriveMap 3. update-rc.d workDriveMap defaults(update-rc.d workDriveMap remove) (So you have a script of your own...2008-10-30 21:30:01 · 70 阅读 · 0 评论 -
如何删除老版本的Ubuntu内核
sudo aptitude purge ~ilinux-image-.*\(\!`uname -r`\)2008-10-28 16:49:04 · 85 阅读 · 0 评论 -
Difference between ksh a.sh and exec a.sh
1. ksh 就是让现有的shell pending, 然后新开一个shell, 如果用ksh的话,当前的shell会pending, 直到ksh所执行的shell结束, 当前的shell就又活过来了 2. exec时结束现有的shell, 重新开一个...2008-10-13 09:54:56 · 87 阅读 · 0 评论 -
Start to use svn
http://artis.imag.fr/~Xavier.Decoret/resources/svn/index.htmlhttp://www.logos.ic.i.u-tokyo.ac.jp/~kenny/pukiwiki/index.php?Linux%2FSVNhttp://svn.collab.net/repos/svn/trunk/doc/user/svn-best-practi...2009-04-14 15:18:29 · 73 阅读 · 0 评论 -
命令行tab键自动提示的使用
在命令行敲命令或者路径时,可以用*做模糊匹配或者用tab键进行提示,用*做模糊匹配很简单,这里只描述一下如何用tab键进行提示。 1. 当只给出了一个命令或者路径的一部分的时候,按tab键后,如果给出的一部分能够决定唯一一个命令或路径,它会补全这个命令。例如, $objd => tab $objdump 2. 如上例,如果不能决定出唯一一个路径,然后,再按一...2008-09-11 10:37:36 · 567 阅读 · 0 评论 -
新手看招 Unix和Linux下C语言学习指南
引言 尽管 C 语言问世已近 30 年,但它的魅力仍未减退。C 语言继续吸引着众多的开发者,他们为了编写、移植或维护应用程序而必须学习新技能。 本文是为了满足对C语言初学者或想提高自身C语言修为的开发人员的需要而写的。希望对您的学习和工作有所帮助。您也许不赞同其中的某些方法,但我们希望您会喜欢其中的一些。 本文不介绍作为一个程序员应掌握得语言细节,而是与初学者分享自己的UNIX 下C...原创 2008-09-05 17:35:52 · 122 阅读 · 0 评论 -
如何用Linux 命令格式化xml文件 - xmllint --format FILE
xmllint --format dest.xml2008-09-04 13:49:20 · 2764 阅读 · 0 评论 -
Ubunt奇怪的焦点问题
用了一段ubuntu发现,ubuntu 在使用Normal和Extra效果时有一个奇怪的焦点问题。 问题 在使用Alt + Tab切换窗口的时候, 从一个终端窗口切换到一个浏览器,再从一个浏览器切换回这个终端,这个终端看似有焦点,但是实际上失去了焦点。 Workaround 1. 用鼠标点击标题栏。2. 使用Ctrl + Alt + Up选择窗口。...2008-09-03 17:26:18 · 111 阅读 · 0 评论 -
利用GNOME Libraries来使应用程序的撰写更加容易
让我们经由回答读者可能有的一些疑问来当作本文的开始... [Q] GNOME 是什麽? GNOME 是∶ UNIX 下图形操作界面环境 收集许多有用、小型的应用与工具程序 设计给应用程序的函式库集 [Q] 为何要使用 GNOME libraries ? 为什麽不乾脆直接使用一套 GUI 工具, 例如∶ GTK+ 、 Motif 或是 Qt 呢? 这些工具都有它们的优点,不过我相...原创 2008-08-28 21:36:44 · 78 阅读 · 0 评论 -
Linux 文件系统结构和常用命令
linux目录架构/ 根目录/bin 常用的命令 binary file 的目錄/boot 存放系统启动时必须读取的档案,包括核心 (kernel) 在内 /boot/grub/menu.lst GRUB设置 /boot/vmlinuz 内核 /boot/initrd 核心解壓縮所需 RAM Disk/...原创 2008-08-27 17:06:03 · 90 阅读 · 0 评论 -
Linux 查看磁盘分区、文件系统、使用情况的命令和相关工具介绍
原文 http://www.linuxsir.org/main/node/188?q=node/41Linux 查看磁盘分区、文件系统、使用情况的命令和相关工具介绍 作者:北南南北来自:LinuxSir.Org提要:Linux磁盘分区表、文件系统的查看、统计的工具很多,有些工具是多功能的,不仅仅是查看磁盘的分区表,而且也能进行磁盘分区的操作;但在本文,我们只讲磁盘分区...原创 2009-03-11 00:46:09 · 119 阅读 · 0 评论 -
Solaris Compiz Desktop Effect doesn't work.
When I enable the Solaris Desktop Effect to Normal, then the System is dead. After I force to restart it, it is still dead when the Gnome is launched. Solution: 1. In $HOME/.gconf/desktop/gnome/a...2009-03-01 23:34:10 · 75 阅读 · 0 评论 -
How to decide what Linux is installed?
vi /proc/version2008-10-31 11:34:13 · 45 阅读 · 0 评论 -
How to see how much is a folder or a file?
du -sh2008-10-31 11:41:34 · 64 阅读 · 0 评论 -
Replace text in file
Windows @echo offif %1%.==. ( echo Usage: %0% FILE_FULL_PATH SOURCE_STRING DESTINATION_STRING echo Where: FILE_FULL_PATH is the full path of the file to be replaced in echo ...2009-06-09 21:53:21 · 96 阅读 · 0 评论 -
cpio
Extract cpio -i </home/robert/abc.cpio Package find . -print | cpio -ocv >/home/robert/abc.cpio2009-06-08 15:31:48 · 103 阅读 · 0 评论 -
进行有效编辑的七种习惯(vim)
如果你的很多时间是用来敲纯文本,写程序或HTML,那么有效地使用一个好的编 辑器能节省你不少时间。这篇文章里的指导和提示将有助于你更快工作,更少犯 错误。 文中采用开源文本编辑器Vim(Vi IMproved)说明有效编辑的思想,但这些思想也 适用于其他编辑器。择合适的编辑器只是有效编辑的第一步,对于哪个编辑器更 好的讨论将占很大地方,这里就不提了。如果你不知道该用哪个编辑器,或者对 现在所使用的...原创 2008-12-16 11:52:40 · 162 阅读 · 0 评论 -
Miscelaneous Tricks to use the Linux Command Line
1. The process name for Linux explorer - nautilus2. Use the tab to complete any tasks including command name, path and so on. 3. Use * to match any command name or path name.4. Under Linux explo...2008-12-10 14:29:16 · 57 阅读 · 0 评论 -
How to map remote network drive
1. sudo apt-get install smbfs 2. sudo /usr/bin/smbmount //IP-ADDRESS/FOLDER /LOCAL-FOLDER -o username=USER,password=PASSWORD 22008-12-09 15:29:05 · 93 阅读 · 0 评论 -
Install the SSH server - openssh-server
sudo apt-get install openssh-server2008-12-09 15:24:41 · 164 阅读 · 0 评论 -
Ubuntu系统目录结构
Ubuntu系统目录结构================== 以下为Ubuntu目录的主要目录结构,您稍微了解它们都包含了哪些文件就可以了,不需要记忆。 / 根目录 │ ├boot/ 启动文件。所有与系统启动有关的文件都保存在这里 │ └grub/ Grub引导器相关的文件 │ ├dev/ 设备文件 ...原创 2008-12-09 08:52:30 · 59 阅读 · 0 评论 -
Ubuntu APT Proxy
When I use ubuntu desktop in VMPlayer, the apt-get command in command line does not work although the proxy is set up in Synaptic Manayger and Gnome Global Proxy Panel. The workaround is, before I use...2008-11-22 14:43:25 · 80 阅读 · 0 评论 -
Ubuntu 8.10 + T61 nvidia 显卡驱动(特效)(compiz)不好用
1. System -> Administration -> Synaptic Package Manager, Settings -> Repositories, make sure Restricted copyright are selected. Then reload the sources. 2. sudo apt-get install nvidia...2008-11-16 20:30:26 · 133 阅读 · 0 评论 -
multiple disks, multiple partitions, multiple OS
1. 基本知识 一块硬盘可以有1-3个主分区和1个扩展分区,或者1-4个主分区。一个扩展分区可以分为若干个逻辑分区。 硬盘的容量=主分区的容量+扩展分区的容量 扩展分区的容量=各个逻辑分区的容量之和 通常,在PC机上使用的硬盘有两种: 1) IDE接口:最常见的; 2) SCSI接口:比IDE性能好,但更贵! 操作系统对分...2008-10-31 22:39:11 · 245 阅读 · 0 评论 -
Ubuntu 8.10 + T61中间小红钮不好用
1. Edit /etc/X11/xorg.conf, add the lines, Section "InputDevice" Identifier "Configured Mouse" Driver "mouse" Option "CorePointer" Option "Device" ...2008-10-31 20:11:27 · 96 阅读 · 0 评论 -
Common compress command.
zip -r dest.zip sourceunzip -d dest source.zip tar Zcvf dest.tar.gz sourcetar Zxvf dest.tar.gz2008-10-31 11:51:38 · 83 阅读 · 0 评论 -
如何系统地学习linux?
linux太难用了!(一通鼠标点击,进入/etc)学习linux,你忘记windows的思维方式了吗?怎么安装软件阿?那一堆文件是干什么的阿?学习linux,你还在浮躁吗?进入linux,随便按了几下.赶紧重启进入win学习linux,你用心了吗?.......首先,我想引用一下别人说过的一句话:除非在过去的十年你一直生活在山洞里,否则你一定听说过linux.是的,现在听说过...原创 2008-08-20 16:49:48 · 173 阅读 · 0 评论 -
Ubuntu ------ Evince Document Viewer 2.22.1.1乱码
sudo apt-get install xpdf-chinese-simplified xpdf-chinese-traditionalsudo apt-get install poppler-data2008-08-20 16:10:40 · 136 阅读 · 0 评论 -
如何学习Linux?
1、以linux为荣耀,以帮助他人了解和学习linux为己任。2、坚持访问英文网站,尤其是一些大师的个人主页。坚持阅读英文文档,并尽量翻译你读过的文档发表到国内的社区上供他人阅读和整理3、了解unix的历史,linux的历史和hacker的历史及文化。4、尽可能联系所以可以联系到Linux的爱好者,尽可能多的了解你能接触到的最了解linux的人对linux的看法。并于自己的观点相比较。5、...原创 2008-08-20 14:59:02 · 81 阅读 · 0 评论 -
How to control the jobs with shell?
There are 3 commands to contol jobs. 1. Ctrl + Z2. bg & fg3. kill4. jobsFor example, 1. robert@debianlaptop:~$ emacs[1]+ Stopped emacs2. robert@debianlaptop:~$ fg %1emacs[1]+ Sto...2008-07-27 17:16:34 · 53 阅读 · 0 评论 -
How to extract the file *.tar.bz2?
#bunzip2 xxx.tar.bz2 然后会在同目录下生成一个文件 xxx.tar #tar xvf xxx.tar文件就会完全的被解压. tar zcvf dest.tar.gz folder_name tar zxvf dest.tar.gz2008-07-27 17:14:25 · 97 阅读 · 0 评论 -
How to add a user and set environments for the us
1. How to add a user and login with new user in Solaris?#bash#groupadd users#useradd -d /export/home/robert -m -g users robertKeep in root user#passwd robert#chown -R robert:users /export/h...2008-07-27 17:13:33 · 58 阅读 · 0 评论 -
Simple ksh knowledge
1. Parameter handover. The ksh paramerter comprises $order, for example, $0, $1. The $0 means the program itself or the function itself, just like the C++, so the $1 is the first parameter, $2 s...2008-07-27 17:12:48 · 41 阅读 · 0 评论 -
我安装Solaris的全过程。
毕业四年,一直在windows下做开发,来到了这家公司工作,总被一些使用命令行的家伙笑话,他们号称是unix高手,所以,决定学习一下unix, 查了一下,公司用的unix是Sun Solaris. 决定在自己家的机器上安装一个Sun Solaris. 下面详细的叙述一下安装的步骤, 1. 去网站下载安装文件,http://www.sun.com/software/solaris/get.jsp...2008-07-27 17:12:13 · 85 阅读 · 0 评论 -
How to control the jobs with shell?
There are 3 commands to contol jobs. 1. Ctrl + Z2. bg & fg3. kill4. jobsFor example, 1. robert@debianlaptop:~$ emacs[1]+ Stopped emacs2. robert@debianlaptop:~$ fg %1emacs[1]+ Sto...2008-07-27 17:00:38 · 55 阅读 · 0 评论 -
Instroduction GNU/Linux/Debia
1. Linux is the kernalof OS.http://www.linux.org/http://www.kernel.org/ 2. Gnu is the tool collection of OS. Gnu had planned to implement the kernal of OS. But never finished it. http://www....2008-07-26 15:58:44 · 110 阅读 · 0 评论 -
The variants of ksh
Points1. If you want to share the variants in a shell to the the children of the current processes. There are 2 ways in ksh, 1) . setEnv.ksh 2) eval "setEnv.ksh" 2. You can define a variant...2008-07-26 15:58:14 · 61 阅读 · 0 评论 -
The process of installing debain in my T61
Firstly, I downloaded the debian stable version - the first ISO file, and burn it into a CD. Then install it into T61. 1. After installation, Video driver is not working. When it tries tostart Gnome...2008-07-26 15:57:35 · 86 阅读 · 0 评论 -
The Gnu's compiler
The GNU has a lot of projects. The package list, http://directory.fsf.org/GNU/The document list, http://www.gnu.org/manual/The a serial of copilers are very great. Binutils, asm compiler, ld, as...2008-07-26 15:56:32 · 51 阅读 · 0 评论