文章目录
  1. 1. linux
    1. 1.1. shortcut key
    2. 1.2. directory
    3. 1.3. bash
    4. 1.4. tar
    5. 1.5. nmap
    6. 1.6. curl wget

linux note

linux

shortcut key

  • ctrl + c 终止
  • ctrl + d 关闭终端
  • ctrl + l 清屏幕
  • ctrl + a 命令的最前面
  • ctrl + e 命令的最后面

directory

  • /
  • /bin
  • /dev
  • /etc
  • /home
  • /opt
  • /var

bash

bash description
man help
ls list directory contents
cd change directory
pwd print name of current/working directory
mkdir make direcorys
rm remove files or directories
mv move (rename) files
cp copy files and directories
cat concatenate files and print on the standard output
tail output the last part of files
1
ls | grep -v test

tar

压缩解压

  • c
  • v
  • f
  • x
  • z
1
2
tar -czvf test.tar.gz test
tar -xzvf test.tar.gz

nmap

扫描工具


curl wget

lsof -i:8388
kill -9 pid

文章目录
  1. 1. linux
    1. 1.1. shortcut key
    2. 1.2. directory
    3. 1.3. bash
    4. 1.4. tar
    5. 1.5. nmap
    6. 1.6. curl wget
Fork me on GitHub