Learning Linux again

Source: Internet
Author: User
I have re-learned Linux-general Linux technology-Linux technology and application information. The following is a detailed description. I haven't played linux for a few years.
Start learning again and find that everything is almost forgotten.

Record it.

Ubuntu Server7.04.
The first command used is:
Sudo apt-get dist-upgrade
Used to upgrade the system.

The second command:
Sudo apt-get install ssh
Install remote control
You can use putty to control the client Win.
This can be said to be the only thing I remember when I learned linux.

Updating takes a long time. You can use the shortcut key Ctrl + C to interrupt command execution.
Resumable upload is performed when a new update is made.



PUTTY login Ubuntu garbled solution!
Putty requires some settings Because Ubuntu uses the character set of UTF-8 by default:

Choose Windows on the left> Appearance to Set Font settings, and click Change... to select or.

Click Windows on the left-> Translation set Character set translation to UTF-8

Then, click Open to connect to the server.

The third command:
Clear Screen
Clear


Fourth command:
View Processes
Ps
Ps-aux view all processes

Tip:
Enter the first few letters of the command and press the "TAB" key to view the commands that can be used.
You can also view the file list of the directory.

Top: displays the system memory and cpu usage, and automatically refreshes the process list.

Vmstat: displays the current memory usage

Netstat: displays network conditions. You can use the p parameter to view the corresponding process number and program name,

Generally, parameters a (display all connections) and n (do not reverse query the domain name and service name), such as netstat-anp.

To view the server listening status, use netstat-an | grep LISTEN.

Check the connection ESTABLISHED on the server. Use netstat-an | grep ESTABLISHED.

Ifconfig: view (or set) network device information

Ifconfig-a: view all network settings

Last: displays the logon status to the server and server restart status.

Df: displays the hard disk space and usage. in Linux, the parameter h can be used to display more user-friendly results. For example:

Df-h hard drive space display by user

Df-k hard disk space is displayed in KB

Df-m hard disk space is displayed in MB

W: displays the list of users logging on to the server.
Related Article

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.