Basic knowledge of Linux System Administrators

Source: Internet
Author: User
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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.