The existing two-segment code is basically the same, except that the variable is changed and nothing else is changed, but there are different results during execution.Code One:vi back.sh#backup Import File,such as/etc/rc.local/var/spool/cron/Rootip=$
Linux is a multi-user system, no time there are many accounts on the system login, operation, so it is important to manage users.1. User article--/etc/passwd,/etc/shadow1. Add Account--useradd Useradd [-u uid] [-g gid] [-d home] [-m] Span class=
1. Install the virtual machinevmware-workstation-full-12.5.62. Install Linux operating systemUbuntu-16.10-server-amd64Note: Do not configure the keyboardDo not turn off the power of the virtual machine directly, just like a direct power outageEnter "
Memo, quoted from: http://blog.csdn.net/lzwglory/article/details/542332481. Permanent modification, valid for all users# Vi/etc/profile//Press keyboard [Shift + G] To add the following at the end of the profile file:Export Java_home
Vamei Source: Http://www.cnblogs.com/vamei Welcome reprint, Please also keep this statement. Thank you!Reference linksHttp://www.cnblogs.com/vamei/archive/2012/10/04/2711818.htmlRoleHow information is passed to the process.Usage ScenariosThe kernel
An IPC object----Message Queuing IPC Object Commands (1) View IPC objects in the systemIPCS-A display of all IPC objectsIpcs-s/-q/-m (2) Remove IPC objects from the systemIpcrm-q/-s/-m ID 1. Get the key value The first type:key_t Ftok (const char
Locate file name
Search by file name in the background database, search faster
Background database location for search/var/lib/mlocate
The background database defaults to an update one day, you can force the update by using
Common commands
CDs are commonly used as directory switching commands to enter the directory. Usage:
Mikdir to create a new folder
Vim is used to compile a file
VI FileName: Opens or creates a new file and
One, grep commandgrep (Global search Regular expression (RE) and print out of the line, full search of regular expressions and print out rows) is a powerful text search tool that uses regular expressions to search for text. and print out the
Chapter III pipeline character, redirection and environment variables The pipe command , "|", is used to treat the standard output of the previous command as a standard input to the latter command,Format: "Command a| command B" input and output
goal: reduce the volgroup-lv_home to 20G and add the remaining space to the Volgroup-lv_root1. Check disk usage First[[Email protected]~]# df-hFile system capacity has been used with available% mount pointsFilesystem Size used Avail use% mounted
Head [OPTION] ... FILE ...Function: Displays the beginning of the file to the standard output (the first 10 lines at the beginning of the default file)[OPTION]-N Displays the first n rows of the fileSuch as:Head-5 file shows the first 5 lines-C n
The TR command can perform character conversion, character deletion, and repetitive character compression on content from standard input, often called a conversion command, with the following format:TR [option] Set1 Set2, which maps input characters
/boot: Start Linux core files;The following are other common Linux operating system directories:/bin: Store The most commonly used commands;/dev: Device files;/etc: Store various configuration files;/home: Household directory;/lib: The most basic
I. INTRODUCTION of LinuxLinux is a free and open source Unix-like operating system. is currently the most widely used, most people operating system. The kernel of the operating system was first released by Linus Torvalds on October 5, 1991. After
Taking Xshell as an example1. Click "Tools"-New user key Generation wizard2, click "Next" two consecutive times, enter the password3 Generate the public key, copy it, and leave it to the next4. Copy the public key to Linux# MKDIR/ROOT/.SSH# chmod 700
1. JDK InstallationNote:rpm and software-related commands are equivalent to software Assistant management software under WindowsSteps:1) See If the current Linux system has Java installedInput Rpm-qa | grep java2) Uninstall two x OpenJDKEnter rpm-e--
Even if it is ten years of operation, serious look, thought will have a qualitative harvest, because the old boy's explanation involves, a number of areas, the ability of several posts !The old boy with his former cock Silk (under 1 million ) to the
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