Linux Command

来源:互联网 发布:钰恒电子秤 数据采集 编辑:程序博客网 时间:2024/05/21 14:07

搜索帮助

find

locate

which

where

man

info

whatis (man -f)

apropos (man -k)

makewhatis

目录管理

ls (list)

mkdir

rmdir

文件管理

cat / tac

nl

more / less

tail / head

od

磁盘管理

容量评估

df - report file system disk space usage

du - estimate file space usage

分区

fdisk - partition table manipulator for Linux

parted- a partition manipulation program

格式化

mkfs - build a Linux file system

mke2fs - create an ext2/ext3/ext4 file system

mkswap - set up a Linux swap area

mkisofs - create ISO9660/Joliet/HFS file system with optional Rock Ridge attributes

文件系统检查

fsck - check and repair a Linux file system

e2fsck - check a Linux ext2/ext3/ext4 file system

badblocks - search a device for bad blocks - 坏道检查

挂载

mount - mount a file system

磁盘参数修改

mknod - make block or character special files

e2label - change the  label on an ext2/ext3/ex4 file system

tune2fs - adjust tunable file system parameters on ext2/ext3/ex4 file systems

partprobe - inform the OS of partition table changes

压缩处理

compress - compress data

gzip / gunzip / zcat - compress or expand file

bzip2 / bunzip2 / bzcat - a block-sorting file compressor

tar - package or compress

备份还原

dump - ext2/ext3/ext4 file system backup

restore - restore files or file systems from backups made with dump


未处理命令

dd - convert and copy a file

swapon / swapoff - enable/disable devices and files for paging and swapping

cdrecord - write data to optical disk media

iconv - convert encoding from one to anther

unix2dos - unix to dos text file format converter

dos2unix - dos to unix text file format converter

type - show the command type

env - run a program in a modified environment

export - export user-define-variable to environment-variable

set - show/set all kinds of variables

0 0
原创粉丝点击