
Linux
文章平均质量分 88
scuthxf
这个作者很懒,什么都没留下…
展开
-
How to add swap space in Linux
如何在Linux下面添加swap file,记录之。1) 首先确定你要添加的swap的大小,比如是2G,那么就是2048000k2)以root用户登录到终端,dd一个文件,大小就是你期望的swap文件大小,比如:dd if=/dev/zero of=/swap转载 2011-09-20 16:52:31 · 484 阅读 · 0 评论 -
Reference for Creating Kickstart file
Red Hat Enterprise Linux Installation Guide:https://www.redhat.com/docs/manuals/enterprise/RHEL-5-manual/Installation_Guide-en-US/index.ht原创 2011-09-20 17:08:04 · 280 阅读 · 0 评论 -
Shell Tips
1. dos2unix: 如果直接从windows 拷贝文件到Linux,最好运行dos2unix, 否则会导致很多莫名的错误2. Create a block devicedd if=/dev/zero of=/dev/sda3 dd if原创 2011-09-20 17:03:51 · 393 阅读 · 0 评论 -
Linux Network scripts
local dhcp_ip=`/sbin/ifconfig eth0 | grep 'inet addr' | awk -F: '{print $2}' | awk '{print $1}'` local dhcp_netmask=`ifconfig eth0 | grep原创 2011-09-20 18:04:29 · 1323 阅读 · 0 评论 -
LVM image mount/umount
ErrorIt can not mount.#mount system.img /mnt/mount: system.img is not a block device (maybe try `-o loop'?)#mount -o loop system.i原创 2011-09-20 16:55:56 · 1326 阅读 · 0 评论 -
Sparse enabled 'dd‘ test
To Check if the 'dd' command is using Sparse :#!/bin/bash# set -xfile_name="tttt.img"`dd if=/dev/zero of=$file_name bs=1024 count=1原创 2011-09-23 17:27:01 · 409 阅读 · 0 评论 -
僵尸进程的产生和避免
在fork()/execve()过程中,假设子进程结束时父进程仍存在,而父进程fork()之前既没安装SIGCHLD信号处理函数调用waitpid()等待子进程结束,又没有显式忽略该信号,则子进程成为僵尸进程,无法正常结束,此时即使是root身份kill -9也不能杀死僵尸进程。转载 2011-09-23 17:08:45 · 394 阅读 · 0 评论 -
Edit the initrd image
There are a number of boot problems related to missing modules in the initrd image, boot device can't be found, and also many mount or devic原创 2011-10-11 16:08:24 · 412 阅读 · 0 评论 -
Linux下查看支持的信号列表
~$ kill -l1) SIGHUP 2) SIGINT 3) SIGQUIT 4) SIGILL5) SIGTRAP 6) SIGABRT 7) SIGBUS 8) SIGFPE9) SIGKILL 10) SIGUSR1 11) SIGSEGV 12) SIGUSR213) SIGPIPE 14) SIGALRM 15) SIGTERM 17) SIGCHLD18) SI转载 2012-03-13 22:52:37 · 485 阅读 · 0 评论