1. Display Databaseshow databases;2. Select DatabaseUse database name;3. Display the tables in the databaseShow tables;4, display the structure of the data tabledescribe table name;5. Display the records in the tableSELECT from table name6. Build
How do I build a Linux distribution with SUSE Studio?(1) Enter into Www.susestudio.com, set up an account(2) Select a basic template for your device (release)-Software and package selection(1) Select the software and packages that will be supplied
1. cdCD ~,CD: Go back to your home folder; CD: the current layer; CD-: Go back to that directory.2. PWD Displays the directory where you are currently-P: The tender does not display the data of the connection file, but instead displays the correct
The tools you can implement to find files on Linux are: locate, findAbout the Find command explanation: http://afterdawn.blog.51cto.com/7503144/1856660LocateRely on the pre-built index library;Automatic implementation of the system (periodic
Linux under the SELinux detailed1.SElinux Full Name:security-enhanced Linux, flexible mandatory access control (MAC) system, and embedded in the Linux kernel, only the collection of minimal access, 2. View the file context: Ls-z[Email protected] ~]#
chmod command: Change access permissions for a file or directory
#权限代号-R file is read 4-w file is written 2-x file is executed 1
#权限范围-u file owner-G file owner Group-O Other-a All
# Create a file touch demo1.txt# to display the created
Realize SSH Trust under LinuxToday we mainly introduce how to implement SSH login and data transmission mutual trust, so-called mutual trust is the server with the server data transfer or SSH login does not need to enter a password can be accessed,
1. Create a userUseradd–d/usr/test-m TestThis command creates a user test with a user home directory of/usr/test2. Set User password。 Change your password passwd, you need to enter the old password。 Super users modify other user passwords: (no
1. The Boot program security Linux system root password is very easy to crack, of course, if you do not set the boot program password, such as Grub or LILO, in order to prevent through the boot program to decipher root password, it is strongly
There are several ways to disable your account:1. # usermod-l # usermod-u //de-disable2. Modify the/etc/passwd file, there can be several places1) Change the "X" in the second field to another character, and the account will not
Vim/etc/vimrcBecause you want to work with others to manage the common server, so you write something to let others can understand, it is best to put your name on the labelSet Cursorline/set nocursorline # # # #设置行线显示与否Set Nu/set Nonu # # #
1. Use the & symbol to execute commands in the backgroundYou can add the & symbol to the Linux command or script to make the command or script execute in the background, for example:.$./my-shell-script.sh &2. Use Nohup to execute commands in the
1. Learn to use LDD *.so to see which libraries the dynamic libraries depend on to exclude some exception errors.2. Ldconfig is a dynamic link Library Management command, the purpose of the Ldconfig command, mainly in the default search directory
Redhat5 Local Yum Source:1. Mount the ISO image file on the virtual machine2. Create directory: Mkdir/media/cdrom3, cd/etc/yum.repos.d/, delete all the. Repo files in this directory (can be backed up in advance)4. Create the Local.repo file under
Linux route command practice, linuxroute
Configure the route table:
Step 1:
Sudo route add-net 172.30.6.0 netmask limit 255.0 eth0
After the command is executed, run the route-n command to view the information as follows:
172.30.6.0 0.0.0.0 255.255.2
Linux Command -- tail, linux -- tail
Linux tail command to display the content at the end of the file
Syntax: tail [parameter] [parameter value] [file name]
Parameter description:
-N: displays the specified number of rows forward from the end of the
For input/output and redirection in linux, linux redirection
Input/Output explanation
When we execute shell, each process has a relationship with three open files and uses the file descriptor to reference these files. But these files are not easy
Ubuntu server deployment (2) Notes on mysql installation and configuration, tumysql
Mysql installation is much simpler. You can directly download it from the source through ubuntu package management.
Sudo apt-get install mysql-server
Enter "
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