The purpose of this article is to decide which directory space occupies the most files when disk space is full, so as to analyze the reasons for the lack of space
1, to Xshell or other terminal software through SSH or Telnet login to see the system
1, prohibit the root user login ssh
The code is as follows:
#vi/etc/ssh/sshd_config
Put
The code is as follows:
Permitrootlogin Yes
To
The code is as follows:
Permitrootlogin No
Restart the sshd service
The code is as follows:
#service
Today, a Web site for login server found no session after login. According to past experience, generally the space is full cause session file generation failed.
The code is as follows:
Df-h
The code is as follows:
FileSystem Size Used Avail use%
Rev
Rev Displays the last character displayed to the first character.
Cases:
The code is as follows:
[Root@localhost www]# Cat Test
1234
Abcd
[Root@localhost www]# Rev Test
4321
Dcba
[Root@localhost www]# TAC Test
Abcd
1234
Tac
Usage:
When you just touch the Linux system VPS host, the operator will often give you a Linux system Remote Login admin username and password. And this password is the default cut has a certain regularity, so it is very unsafe. This time we need to modify
Last month, a user posted a question in the Arch Linux forum and asked why his notebook was completely out of order after running a simple "rm-rf-no-preserve-root/" command. Students with Linux basics should know that running this command is really
The following is the method of Baidu, fsck cautious use, in addition fuser can solve Umount encounter device busy situation
Mount;d f-h Vi/etc/fstab is a number of commands that are often used when you encounter read-only and file systems
But the
1 first confirm that the directory to be restricted is a separate file system
Df-h/home Test
2 If it is a separate file system. You need to add quota support to the directory.
A: Temporary program, computer restart failure: Mount-o
In the Windows system, we like to keep the various documents we have prepared in the "My Documents", in the Windows and Linux dual-system machine, we often use Linux in the "My Documents" in the document, We also hope that documents edited in Linux
Detecting new hardware with hardware detection program Kuduz: Service kudzu start (or restart)
Viewing CPU information: Cat/proc/cpuinfo
View board Information: CAT/PROC/PCI
Viewing PCI information: LSPCI (more intuitive than CAT/PROC/PCI)
In Linux to split large files, such as a 5GB log file, you need to divide it into small files, after segmentation to facilitate the normal text editor read.
Sometimes, you need to transfer 20GB of large files to another server, and you need to
If your Linux server is exposed to unauthorized users (such as servers in the public room, public office), then its security will have serious problems. use Single-user mode to enter the system linux boot: When prompted, use a special command
This article summarizes the following commands:
Wc:word Count
-L: Shows only the number of rows
-W: Show Only words
-c: Show byte size only
Cut: (remove sections from every line of files) deletes a fixed portion of each row of the file, used to
TFTP server-Installation
Install Tftp-server with RPM package
1, if the use of the following command to see the service is started, do not install
[Arm@localhost]# netstat-a | grep tftp
Installed results: UDP 0 0 *:tftp *:*
2, if not installed,
Use the Chkconfig command to view services (or programs) that start automatically at different startup levels, with the following command format:
Chkconfig--list
The output may be as follows:
OpenVPN 0: Close 1: Open ... 6: Close (0-6 is the
This article describes how to manually configure a wireless network card in the Linux command-line interface. Most popular distributions today support the easy configuration of graphical interface Network-manager without using the original methods
first, starting from the foundation
Some friends often ask questions in Linux forums, but most of them are very basic. For example: Why do I use a command when the system tells me that I can not find the directory, how can I limit the user's
Order to enter VI
VI FileName: Open or create a new file and place the cursor at the beginning of the first line
VI +n FileName: Open the file and place the cursor at the beginning of nth
VI + FileName: Open the file and place the cursor at the
The free command provides a more concise view of system memory usage relative to top:
$ free
Total used free shared buffers Cached
mem:255268 238332 16936 0 85540 126384
-/+ buffers/cache:26408 228860
swap:265000 0 265000
Mem: represents
Apt-cache Search Package Package
Apt-cache Show package get information about the package, such as description, size, version, etc.
sudo apt-get install package installation package
sudo apt-get Install package--Reinstall reinstall package
sudo
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