Linux operating file directory

command Explanation grammar parameter Parameter Description
ls Display a list of files and directories ls [-alrtAFR] [name...]    
      -l For more information list file
      -a Lists all files in the current directory contains hidden files
mkdir Create a directory mkdir [-p] dirName    
      -p Mr. parent directory to the parent directory absence
cd Change directory cd [dirName]    
touch Generates an empty file      
echo Generates a file with content echo abcd > 1.txt,echo 1234 >> 1.txt    
cat Display text files cat [-AbeEnstTuv] [--help] [--version] fileName    
cp Copy the file or directory cp [options] source dest    
rm Delete Files rm [options] name...    
      -f Forced to delete a file or directory
      -r Delete all files in this directory
mv Moving files or directories mv [options] source dest    
find Find the specified file in the file system      
      -name file name
grep Find specified string in the specified text file      
tree It used to list the contents of the directory tree diagram      
pwd Displays the current working directory      
ln Softlinks      
more Page display the contents of a text file      
head The beginning of the file display      
tail Display file contents end      
      -f Trace output

Guess you like

Origin www.cnblogs.com/liabin/p/11588744.html