知行

脚本命令

pwd: print working directory
cd: change directory
ls: list files and directories
less: view text files
file: classify a file's contents
cp: copy files and directories
mv: move or rename files and directories
rm: remove files and directories
mkdir: create directories
type: display information about command type
which: locate a command
help: display refrence page for shell builtin
man: display an on-line command refrence
chmod: modify file access rights
su: temporarily become the superuser
sudo: temporarily become the superuser
chown: change file ownership
chgrp: change a file’s group ownership

ps: list the processes running on the system
kill: send a signal to one or more processes
jobs: an alternate way of listing your own processes
bg: put a process in the background
fg: put a process in the forground

什么是命令

有四种

  1. An executable program
  2. A command built into the shell itself
  3. A shell function
  4. An alias