Linux Command

本文提供了Linux系统中常用的文件及磁盘管理命令介绍,包括搜索、目录与文件操作、磁盘空间评估、文件系统创建与检查等实用命令,旨在帮助用户快速掌握Linux的基本操作。

搜索帮助

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

评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值