1. FindSearch by name: Find/-name file_name 2, Zip compression1) I want to compress a file repartition.txt and a directory invader into Amateur.zip:# zip-r Amateur.zip repartition.txt Invader 2) I downloaded a aptly.zip file that I want to unzip:# unzip Aptly.zip 3) I have abc1.zip,abc2.zip and Abc3.zip in the current directory, and I want to unzip them together:# unzip abc\? ZipNote: A character is represented if any number of characters are represented by *. 4) I have a very large compressed file sponsored.zip, I do not want to decompress, just want to see what is inside it:# unzip-v Sponsored.zip 5) I downloaded a compressed file quest.zip, want to verify that the compressed file is completely downloaded# unzip-t Request.zip 6) I use the-v option to find that Recapture.zip compressed files have many directories and subdirectories, and the subdirectories are actually songs mp3 files, I want to download these files to the first level directory, rather than a layer of the directory:# unzip-j Recapture.zip3. Installing GCC
yum -y installgcc
yum -y install gcc-c++
yum installmake
-OR
yum groupinstall "Development Tools"
-OR
yum installgccgcc-c++ kernel-devel
4. Mount the shared directory on Windows to the specified directory in the Cent OSCreate directory test on Windows, set as shared directory;Create a Windows folder under the/mnt directory of the Cent OS; then mount:mount-t cifs-o username=laoma,password=123456//192.168.1.115/test/mnt/windowsLaoma and 123456 for Windows account password, 192.168.1.115 for Windows IPNote: The IP of the cent OS and Windows must be in the same network segment, and if you are using a VMware virtual machine, set the network connection directly to bridge mode. windows must have a password, or it will fail to mount (I don't know why) 5. Output the Make output information to the Build.log fileMake > Build.log 2>&16. Produce the specified filegenerate a random 4KB size file under optDD if=/dev/urandom of=/opt/test bs=4kb count=17. View File MD5md5sum filename8. View Yum Installation optionsYum Search boost #boost相关9. SCP, Remote copycopy from local to remote host:SCP filename [email protected]:p ath Copy from remote host to localSCP us[email protected]:filename Path10. Several common signs of the catalogue. Represents this layer directory.. Represents a previous level directory-Represents a previous working directory~ Represents the home directory where ' current user identity ' resides~account represents the user's home directory (account is a name)11, a question about the root directory under Linux, there is no upper directory under the root directory (..) Exist? A: If you use ' ls-al/' to query, you can see that the root directory does exist. And.. Two directories, and then a closer look, you can find that the properties of these two directories and permissions exactly the same, which represents the root of the previous layer (..) With the root directory itself (.) is the same directory. 12. PWD commandpwd [-p]-P: Shows the exact path, not the link path. 13, MKDIR[-MP]mkdir Testmkdir-p test1/test2/test3/test4 #递归创建mkdir-m 775 Test #创建时赋权限14, Rmdir[-p]Delete Empty directory,-p is recursive delete15, LsofSee what process the port is running:lsof-i:8080--> View the 8080 port application.
Linux Learning Notes--basic command learning