To open the compile server stepFor example, to add an account to test on 172.17.201.71. # AddUser Test//Add Linux Account2. # passwd Test//Set password for Linux account3. # SMBPASSWD-A Test//Add Samba account to account and set password4. Set Samba
shopt commandThe shopt command is used to display and set the behavior options in the shell to enhance the shell's ease of use.Open and closeOpen shopt command: shopt-u extglobAfter opening, the following 5 pattern matching operators will be
First, what is SED?The Linux sed command uses script to process text files.SED can process and edit text files according to script instructions.SED is mainly used to automatically edit one or more files, to simplify the repeated operation of the
The new Linux virtual machine is configured with Vi/etc/sysconfig/network-scripts/ifcfg-eth0:Then use Ifconfig to see if the IP is not eth0, only lo and virbr0Where lo is a loopback device. This is a necessary device, so long as Linux is enabled for
To find a keyword from a file:Cat file name | grep ' keywords 'Linux VI Search:/1. Enter "/string" in command mode, e.g./keyword2. If you find the next, press "N" toLinux View file display line number:: Set NuSwitch Directory directory: CDView files
1. Display the default shell of root, fedora or User1 user on the current system;Grep-e "^ (root|user1|fedora)"/etc/passwd | Cut-d:-f72. Find the line with a set of parentheses after a word in the/etc/rc.d/init.d/functions file, such as: Hello
Transferred from: http://blog.sina.com.cn/s/blog_688077cf01013qrk.html$PATH: determines which directories the shell will look for commands or programs, the value of PATH is a series of directories, and when you run a program, Linux searches for
0.50G Ubuntu Partition Scheme/ 9GSwap 2G/boot 150M/home 13G/temp 2G/usr 11G/var 5G/usr/local 5Gopt 3GUbuntu Partition Scheme1, the network icon in the upper right corner is missing?
Security context: Each process in a Linux system runs as a user, and the permissions of the process to access the resource depend on the permissions of the user initiating the processPermissions Application Model:1) Determine whether the user
In general, the root authority is in the hands of the system administrator, can not easily give ordinary users, but sometimes ordinary users want to do some high-level operation, but also trouble the system administrator, such as Ah, change the
In Linux, we often need to find some files, as well as the directory where the files are located. Then we need to use some basic files to find the Class command.There are several main file lookup commands:which to view the full path of a command or
In Linux, we often need to find some files, as well as the directory where the files are located. Then we need to use some basic files to find the Class command.There are several main file lookup commands:which to view the full path of a command or
Table of Contents Operations Commands (6)ls tree pwd mkdir rmdir CDFile Operations Command (7)Touch CP MV RM Ln Find renameFile View and Processing commands (21)Cat more less head TAC Head tail cut pasteSort uniq WC iconv Dos2unix file diff tree
1. Displays the default shell for root, fedora, or User1 users on the current system.[Email protected] ~]# grep-e "^root\>|^fedora\>|^user1\>"/etc/passwd| Cut-d:-f1,7root:/bin/bashuser1:/sbin/nologinfedora:/bin/bash2. Find the line with a set of
Directories and PathsCD: Switch directoriesFor example: CD ~willhua, go back to user Willhua's home folderCD ~ or CD, it means back to your home folderCD-, which means back to the previous directorypwd: Displays the directory where you are
--User Management explainedIn Linux, each user has an account and has different usage rights for different system resourcesThere are two types of system accounts:(1) User account (each user has a uid,gid)1. admin root user and normal account(2)
Linux file Removal detailed1.1 Storage of Linux filesLinux will logically plan the disk into blocks when the file system is built,and the inode block corresponds to a number (the inode number ) for each block in block blocks . Unique in this file
First create a temp directory: [email protected]:/home/work/tools$ mkdir tmpUnzip to root directory: [email protected]:/home/work/tools$ sudo tar xjf arm-linux-gcc-4.3.2.tar.bz2-c/(cross-compilation tool must be extracted to the root directory,
In the morning on a company's Nginx front-end server for maintenance operations; Want to add nginx command path "/usr/local/nginx/sbin/" to/etc/profile; edit finished; source/etc/profile , and then found that the most common commands such as LS.VI
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