UNIX common command to learn (1)

xiaoxiao2021-03-06  14

Command format: Find Dir -Name FileName Command Example: # Find. -Name Hello -Print Looking for the current directory and all sub-directory called Hello's documentation. # Find. -ctime 7 -print to find the unhabited document within seven days # Find. -size 2000m -print to find out the size of more than 2000 bytes # Find / Tmp -user b1234567 -print belongs under / TMP Document B1234567 Document # Find. -Name '* .c' -EXEC RM {} Deletes all .c file # find. -name test / * -print Display the current directory and its subdirectories before 4 file names for TEST

In general, in Solaris, there will be such a few format software: 1). Document ending with Gunzip or Gzip -d, and use tar to extract. 2) .tar ended file, we I will definitely know that using TAR XVF format to decompress. 3) The file ended in. ZIP, we use unzip, note that this only under high versions of Solaris is available. And this file format is more than Solaris's PATCH. 4). 4). 4). The file ended, we generally use uncompress to decompress (of course, everyone's habits are different.) The above is unzipped, which will generate such a few ways: 1) Generate .local file, this time, We use: pkgadd -d xxx.local to install. 2) Generate a directory, and there will be some PKG information in this directory, we use: pkgadd -d.; Refer to the current directory, install, and follow the default path To install. 3) Generate a digital directory, generally refer to Solaris's Patch, this time we use patchadd to install.

转载请注明原文地址:https://www.9cbs.com/read-49107.html

New Post(0)