我自己的 linux-cheatsheet

小抄

  1. sort

sort lines of text files

  1. tee

read from standard input and write to standard output and files

  1. systemctl

Control the systemd system and service manager

  1. yum

Yellowdog Updater Modified

  1. rm

remove files or directories

  1. rpm
    • rpm -qa|grep httpd
    • rpm -ql httpd-2.4.6-90.el7.centos.x86_64

RPM Package Manager

  1. grep

print lines matching a pattern

  1. info

read Info documents

  1. man

an interface to the on-line reference manuals

  1. tar

归档数据

  1. mkdir

make directories

  1. ls

list directory contents

  1. tree

list contents of directories in a tree-like format

  1. cat

concatenate files and print on the standard output

  1. cp

copy files and directories

  1. echo

display a line of text

  1. chmod

change file mode bits

  1. touch

change file timestamps

  1. mknod

make block or character special files

  1. uname

print system information

  1. hostnamectl

Control the system hostname

  1. free

Display amount of free and used memory in the system

  1. telnet
    • user interface to the TELNET protocol
    • communicate with another host using the TELNET protocol
  2. sleep

delay for a specified amount of time

  1. locale

get locale-specific information

  1. tput

initialize a terminal or query terminfo database

  1. stty

change and print terminal line settings

  1. date

print or set the system date and time

  1. ps

report a snapshot of the current processes.

  1. netstat
    • netstat -anptu

Print network connections, routing tables, interface statistics, masquerade connections, and multicast memberships
masquerade: 伪装 multicast: 多播

  1. chkconfig

updates and queries runlevel information for system services

  1. find

search for files in a directory hierarchy

  1. xargs

build and execute command lines from standard input

  1. kill

terminate a process

  1. nohup

run a command immune to hangups, with output to a non-tty

  1. groupadd

create a new group

  1. usermod

modify a user account

  1. newgrp

log in to a new group

  1. gpasswd

administer /etc/group and /etc/gshadow

  1. groups

print the groups a user is in

  1. id

print real and effective user and group IDs

  1. sendfile

transfer data between file descriptors

  1. rename

rename files

  1. ln

make link between files

  1. top

display Linux processes

  1. readlink

print resolved symbolic links or canonical file names

  1. df

report file system disk space usage

  1. du

estimate file space usage

  1. dd

convert and copy a file

  1. debugfs

ext2/ext3/ext4 file system debugger

  1. more

file perusal filter for crt viewing

  1. less

opposite of more

  1. file

determine file type

  1. test

check file types and compare values

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值