Article Title: Basic knowledge of Linux system administrators. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.
1 SSH
(1) $ ssh-XC user @ myserver
Ssh: Remote logon using secure sockets
Parameters:
<1>-X: enables graphical X11.
<2>-C: compress)
(2) FAQs and Solutions
If the IP address of the target host myserver is changed and the remote host cannot be accessed, you can use the following command to modify the IP Address:
$ Vi/home/user/. ssh/known_hosts
2 Find
(1) $ find/-iname '* java *'-exec chmod 755 {}\;-print
Find the file whose name contains java from the root/directory, modify its permissions, and delete the records and print them to the console.
(2) $ find.-name '* java *'-exec rm {}\;
Find and delete a file whose file name contains java from the current directory.
3. How to save files deleted through the smb service
$ Vi/etc/samba/smb. conf
(1) Modify:
[Global]
Log level = 0 (Note: The default value is generally 1)
(2) Add:
Vfs objects = extd_audit recycle
Recycle: keeptree = true
4. synchronize data
Rsync
$ Rsync-Pr? Rsh = ssh Study.doc USER @ HOST:/home/USER/docs
Parameters:
<1>-P: Progress percentage, showing the download/upload progress
<2>-r: recursion in the entire folder.
5. Check common system services
Services
($ System-config-services graphical display Service)
$ Service httpd status
$ Service iptables status
$ Service dhcpd status
$ Service mysqld status
$ Service named status
$ Service network status
$ Service squid status
$ Service sshd status