find/root/-type f-name "Test1.txt" |xargs Cat
Xargs put the previous result in the back one to deal with
Delete command:
Find/root/data-type f-exec rm-f {} \;
Find + path + "-type" + type + "-exec" + process + Find result {}\;
find/root/data/-type F|xargs rm-f
Find/data-type f! -name "B.txt" |xargs rm only retains b.txt files and the rest is deleted
Find/data-type f! -name "B.txt" looks for all other "not included B.txt"! For non-/take-back "
Alias Unalias yum rpm seq Xargs
grep echo Tail
!+ history Executes the command number to execute the command directly (get the command number in the record)
Rpm-qa OpenSSH OpenSSL
Openssl-1.0.1e-57.el6.x86_64
Openssh-5.3p1-123.el6_9.x86_64
SSH is a security protocol that is specifically provided for Telnet sessions and other network services
SSH two incompatible versions "SSHV1" "SSHv2"
Telnet Protocol 23
View process: Ps-ef
View Port: Netstat-lntup
View the configured IP:IFCONFIG/IP add
Ss-lntup|grep ssh???
Netstat-lntup|grep ssh???
Ps-ef|grep ssh???
Telnet +ip + port number example [Telnet 192.168.153.128 22]
Cat/etc/redhat-release version
Uname-r kernel
Uname-m View 32-bit or 64-bit
Uname-n Host Name
Hostname Host Name
Who am I user name
Linux interacts with Windows files
Yum Install Lrzsz-y
Yum install telnet lrzsz nmap dos2unix-y
Rz-y transferring files to Linux (selecting files after the command is finished)-Y overwrite
sz-y files are downloaded from Linux to local-y overwrite
Useradd User Name
passwd User Name
Tail-1/etc/passwd
Tail-1/etc/group
Tail-1/etc/shadow
Env |GREP User name View user information for the user under the current user/view environment variables
echo $PS 1 View environment variables
Ps1= "[\[email protected]\h \w \t]\$" Display time [email protected] ~ 16:05:56]$
Skip hints with full path "/BIN/CP" or "\CP"
Alias to find the current alias
Unalias Canceling aliases
Alias ly= "Echo I am Liyang"
Ly
I am Liyang
. BASHRC store personalization aliases or paths
~ User's Home directory
Configuring the NIC
Cat/etc/sysconfig/network-scripts/ifcfg-eth0
Vi/etc/sysconfig/network-scripts/ifcfg-eth0 [onboot = yes]
Ifup eth0
/etc/init.d/network restart
Setup appears garbled, Lang =en
Ifconfig Viewing configurations
Ping ip-t
Linux Common Commands 3