Linux Command User MaintenanceBasicAdd a XXX User:useradd xxxAdd a XXX user, specify home directory for/home/xxx:useradd -m -d /home/xxx xxxAdd a XXX user, specify the home directory as/home/xxx, and specify with bash:useradd -m -d /home/xxx -s /bin/
. In the terminal, enter: Vim/etc/sysconfig/network-scripts/ifcfg-eth02. Start editing, fill in the IP address, subnet mask, gateway, DNS, and so on. Where "the information inside the red box" is necessary.Onboot = yesBootroto = staticDNS1 = 192.168.
Linux Commands format :command [options] [arguments]Command: CommandsOptions:--words or-wordsuch as: LS--allEqu ls-aLs-a-b-cEqu LS-ABCArgument: parameter (file name or other)Detailed introduction to Ifconfig,echo, TTY, STARTX, export, pwd, history,
cat/etc/passwd
CAT/ETC/PASSWD View all user information, details such as
"Step two" Cat/etc/passwd|grep user nameThe Cat/etc/passwd|grep user name that is used to find a user, such as
"Step three" Cat/etc/groupCat/etc/group View all group
1. Partitioning out of two districtsFdisk/dev/sdb650) this.width=650; "src=" Http://s1.51cto.com/wyfs02/M01/87/4E/wKiom1fbrmjxSb2pAAA-dY1iNzo653.png "title=" 1.png " alt= "Wkiom1fbrmjxsb2paaa-dy1inzo653.png"/>2. Creating a File system[Email
First, the initial knowledge of SEDIn the process of deploying OpenStack, you will have access to a large number of SED commands, such as# Bind MySQL service to all network interfaces.Sed-i ' s/127.0.0.1/0.0.0.0/g '/etc/mysql/my.cnfSo what does this
Linux finds common command methods for file content.Find the line matching the specified string from the file contents:$ grep "string found" file nameExample: Looking for the. In file containing the specified string in the first level folder in the
Experimental Purpose: familiar with the previous start-up process, the system of a general start-up process is how, and it involves a few files, these files are used to connect the steps when the system starts, if the files are damaged or missing,
. 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.
Today I learned some knowledge of Linux disk and file system management, here do a summary memo.File System Related:Virtual file System (VFS):Can you understand this?Translate the commands and operations of the upper user into translationThe purpose
NFS (network filesystem) was developed by Sun, and its role is to share the directories you want to develop with others in the network, so that visitors can access things on the NFS server as if they were local files. Data security issues arise when
Compression and Decompression commands Gzip/guzip Zip/unzip tarThe general available parameters for Gzip and gunzip are-R, for example:gzip Test.txt Compressed Files gzip -R test compresses sub-files under all test gunzip test.gz Extract FilesZip
?Method One, modify the/ETC/BASHRC fileAdd at the bottom of the fileAlias zone= "Cd/usr/local/webserver" Entering zone at the command line will go directly to the development directoryMethod Two, establish shell script implementation1. Create a
background: Today, a test machine suddenly appeared a phenomenon, the disk is not writable. After reboot, at boot, prompt "unexpected inconsistency; Run fsck Manually "cannot enter the system (), translates to mean: unexpected inconsistency error,
1. copy The/etc/rc.d/rc.sysinit file to the/tmp directory and add # to the beginning of the line with at least one whitespace character in the/tmp/rc.sysinit file;Cp/etc/rc.d/rc.sysinit/tmp/sed-n ' S/^\ ([[: space:]]\+\)/#\1/p
Retrieve root password:If you encounter a lost password, you can have the administrator reset the password if it is just a lost password for the normal user. But if the administrator user's password is lost, then how to solve?In the Linux
1.PSCP command Introduction, only need to copy this file to the system directory corresponding to the System32, you can check the description of tearful, as shown belowPuTTY Secure Copy ClientRelease 0.67USAGE:PSCP [Options] [[Email
Basic Linux commands and basic linux commands
The following are my notes on linux.
First, let's get familiar with it: DNS is used to resolve domain names; the default url port is 80, which can be left blank; localhost is 127.0.0.1. If it is root,
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