易截截图软件、单文件、免安装、纯绿色、仅160KB

linux下磁盘操作命令

查看系统的磁盘信息:
fdisk -l
[root@localhost home]# fdisk -l
Disk /dev/hda: 8589 MB, 8589934592 bytes
255 heads, 63 sectors/track, 1044 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/hda1 * 1 13 104391 83 Linux
/dev/hda2 14 979 7759395 83 Linux
/dev/hda3 980 1044 522112+ 82 Linux swap
Disk /dev/hdb: 2147 MB, 2147483648 bytes
16 heads, 63 sectors/track, 4161 cylinders
Units = cylinders of 1008 * 512 = 516096 bytes
Device Boot Start End Blocks Id System
/dev/hdb1 * 1 200 100768+ 83 Linux
/dev/hdb2 201 3100 1461600 83 Linux
/dev/hdb3 3101 4161 534744 82 Linux swap
[root@localhost home]#
 
分区:
fdisk
[root@localhost home]# fdisk /dev/hdb
The number of cylinders for this disk is set to 4161.
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:
1) software that runs at boot time (e.g., old versions of LILO)
2) booting and partitioning software from other OSs
(e.g., DOS FDISK, OS/2 FDISK)
Command (m for help): m
Command action
a toggle a bootable flag
b edit bsd disklabel
c toggle the dos compatibility flag
d delete a partition
l list known partition types
m print this menu
n add a new partition
o create a new empty DOS partition table
p print the partition table
q quit without saving changes
s create a new empty Sun disklabel
t change a partition's system id
u change display/entry units
v verify the partition table
w write table to disk and exit
x extra functionality (experts only)
Command (m for help):
 
创建文件系统:
mke2fs
交换分区格式化:
mkswap
[root@localhost home]# mkswap -v /dev/hdb3
mkswap: warning: truncating swap area to 133890kB
Setting up swapspace version 0, size = 133885 kB
 
设置标签:
e2label
Usage: e2label device [newlabel]
 
查看文件系统信息:
df
[root@localhost home]# df
Filesystem 1K-块 已用 可用 已用% 挂载点
/dev/hda2 7637400 5721608 1527824 79% /
/dev/hda1


相关文档:

linux,windows沟通的桥梁ssh

介绍SSH
什么是SSH?
传统的网络服务程序,如:ftp、pop和telnet在本质上都是不安全的,因为它们在网络上用明文传送口令和数据,别有用心的人非常容易就可以截获这些口令和数据。而且,这些服务程序的安全验证方式也是有其弱点的,就是很容易受到“中间人”(man-in-the-middle)这种方式的攻击。所谓“中 ......

XP/LINUX双系统如何正常卸载LINUX

原来由于学习工作的需要,在XP下装了LINUX系统,安装XP/LINUX双系统麻烦,没想到卸载也麻烦。刚开始以为把装LINUX系统的那个盘格式化就OK了,结果重启后仍然出现那个可恨的grub引导界面。一气之下,重装C盘,grub界面没了,可却进不了系统。网上多方查找,最后解决办法:下载mbrfix文件到u盘,用系统盘进入到WINPE,将mbrfi ......

linux 0.11 内核学习 fcntl.c


/*
 *  linux/fs/fcntl.c
 *
 *  (C) 1991  Linus Torvalds
 */
#include <string.h>
#include <errno.h>
#include <linux/sched.h>
#include <linux/kernel.h>
#include <asm/segment.h>
#include <fcntl.h>
#include <sys/stat. ......

转比较不错的linux视频讲座

V] 零起点学习Linux系列培训视频 -1 (寒冰作品)
http://www.boobooke.com/v/bbk1301
[V] 零起点学习Linux系列培训视频 -2 (寒冰作品)
http://www.boobooke.com/v/bbk1304
[V] 零起点学习Linux系列培训视频 -3 (寒冰作品)
http://www.boobooke.com/v/bbk1305
[V] 零起点学习Linux系列培训视频 -4 (寒冰作品)
......

增强Linux/Unix服务器系统安全性介绍


 众所周知,网络安全是一个非常重要的课题,而服务器是网络安全中最关键的环节。Linux被认为是一个比较安全的Internet服务器,作为一种开放源代码操作系统,一旦Linux系统中发现有安全漏洞,Internet上来自世界各地的志愿者会踊跃修补它。然而,系统管理员往往不能及时地得到信息并进行更正,这就给黑客以可乘之机。然而 ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号