Device: A server and a client, here we put the Redhat installed on the PC as a server, and the client is embedded Linux Development Board.Environment: The Development Board has been started, connect the serial and network cable, serial port for
User not authorized sudo:Root login,cd/etc/chmod u+w sudoersVi/etc/sudoersAdd username all= (All) all, save exitchmod u-w sudoers---Chinese font garbled:sudo dpkg-reconfigure localesSelect ZH_CN. UTF-8 UTF-8Convert to Chinese interface, install
. tarUnpacking: Tar xvf Filename.tarPackage: Tar cvf filename.tar DirName(Note: Tar is packaged, not compressed!) )———————————————. gzDecompression 1:gunzip filename.gzDecompression 2:gzip-d filename.gzCompression: gzip FileName. tar.gz and.
Why is the graphics window interface called X? because in the English alphabet, X isW (Indow) behind, therefore, people are nicknamed this version of the window interface for X, the next version of the new window meaningThe x system is composed of 3
Linux centos shutdown and restart commands
Linux centos restart command:
1. reboot
2. shutdown-r now restarts immediately (used by the root user)
3. shutdown-r restarts automatically after 10 minutes (used by root users)
4. shutdown-r restart
I. Modify the time zone
Rm-rf/etc/localtime # Delete the current default time zone www. kwx. gdln-s/usr/share/zoneinfo/Asia/Shanghai/etc/localtime # Replace the default time zone with Shanghai
Run the above command in SSH to change the VPS time
Run "rm-rf/*" in SSH. If you do not understand this command, all Linux system files may be deleted.
This DELETE command can be executed only for accounts with the "root" permission. Other accounts without the "root" permission can only delete files
FunctionMv command to rename a file or directory or move the file from one directory to another directory. This command is equivalent to the combination of the ren and move commands in the DOS system. The permission is granted to all users.FormatMv [
The deep sleep of centos may occur because the screen is closed and there is no operation for a long time. In this case, you can only force the restart by using the power key. You can disable sleep by modifying the X11 configuration. The
In windows, you can log out of an online user through the task manager.There is also a similar method in linux, that is, using the pkill command, the steps are as follows:1. Use the w command to view the users currently logged on to the system:[Root
1. Get the process PID and kill-s-9 pid to kill the process.
1. ps-ef
[root@justin conf]# ps -efUID PID PPID C STIME TTY TIME CMDroot 1 0 0 14:09 ? 00:00:02 /sbin/initroot 2 0 0 14:09 ? 00:00
1. View Hard Disk Partitions
# Fdisk-l
Note: assume that the name of the device that adds a hard disk is/dev/sdb.
2. Start partitioning
# Fdisk/dev/sdb
3. View Command help information
Command (m for help): m
4. view existing partition
Ext2ed (ext2 file system editor)Function Description: ext2 File System editing program.
Syntax: ext2ed
Note: ext2ed can directly process data in Hard Disk Partitions. This command is only available in Red Hat Linux.
Parameters:General
View basic linux help documentation-2014.2.11
--- Common commands
First man: Related command whatis
1. man manual search format
-Input? Key, forward search, such? -H: searches for rows containing "-h ".
-Enter the/key and search backward, for
Linux System Administrator _ basic permissions and ownership-RedhatEnterprise5
Files And Directories are the most important in linux systems. It is often difficult to log on to the system as a root user. Once you use a common user, you will find
Sometimes, when CentOS is installed, the default language is set to Chinese, while some SSH software does not support Chinese encoding, so some garbled characters may occur during Remote Management. How can I modify the default CentOS language? Use
1. Modify the user name, user group, and home directory in the/etc/passwd file;2. Modify the username and user group in the/etc/group file, and rewrite/etc/gshadow;3. Modify the username in the/etc/shadow file. If this parameter is not changed, you
Method 1 (for virtual machines): Adjust the linux resolution under VMWAREAfter linux is installed in VMWARE, the default resolution is 800x600, and the resolution is adjusted to 1024x768. The process of pixels being millions of pixels is as follows:1
The Apache service comes with a tool AB (ApacheBench) that should be used for stress testing. It is fully qualified for some simple stress tests. This article describes how to obtain and install AB without installing apache in Centos.To run AB, you
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