The command meaning
pwd print working directory
cd change directory
mkdir make directory
rm remove
cp copy
mv move
ln link


1. Note: mkdir is used to create multi-level directoriesmkdir -p /father/son/grandson

Delete files and directories rm -r Delete directories -f Mandatory Note: In the working environment, back up important files before deleting them. Otherwise, important files cannot be restored, resulting in critical accidents. 3, file copy CP

  • Cp [option] [source directory] [destination directory]

    option:

    -r Indicates the replication directory

    -p Reserved attributes (time of file, owner)

    -d If the source file is a link file, the link attributes are copied

    – the equivalent of a-pdr

4, links,

Ln -s [source file] [target file] Generate link file -s Create soft link hard link:

Soft links:

Problems with using links:

Ln-s soft links generate Too many levels of symbolic links

CD /home/care/chbtmp Has two folders: A BC Use ln -s to create A soft link: ln -s A BCCopy the code

Go into BC, and CD A appearsToo many levels of symbolic links