Linux UsersWhen you log in to a Linux system, you first identify yourself by signing in with a specific user name (username). Each process running on the system has an associated user name, and each file on the system is marked by a specific user.
The cat command is a text output command under Linux, usually for viewing the contents of a file;There are three major features of cat:1. Display the entire file at once.$ cat FileName2. Create a file from the keyboard.$ cat > FileNameOnly new files
keepalived IntroductionThe Keepalived software was designed for the LVS load balancer software to manage and monitor the status of the various service nodes in the LVs zone system, and later added the VRRP functionality that can be used to achieve
Taking Redis service as an example, this paper introduces two methods of service self-starting SERVICE,SYSTEMCTL use example1. Modify redis.conf to allow background operationDaemonize no change to daemonize Yes2. Using the service command1) Write
linfandeMacBook-Air:Desktop linfan$ scp nginx-1.12.2.tar.gz [email protected]:/root/The authenticity of host ‘192.168.24.232 (192.168.24.232)‘ can‘t be established.ECDSA key fingerprint is SHA256:wP6N3stFy7MIxVcNOHgsB+ss19sxVcItL61X/YcY/kM.Are you
Linux 7.2 Installation JDK method:(1). Log in to the Linux system with the root user and apply Xmanager to copy the files to LinuxThe root directory of the system.(2). Enter Opt/software to create a JVM folderMkdir OPT/SOFTWARE/JVM(3). copy files to
1. Print the last column of each rowAwk-f "[]+" ' {Print $NF} '2. Print the last column of the first rowAwk-f "[]+" ' Nr=1{print $NF} '3. Print the penultimate column of each lineawk ' {print $ (NF-1)} ' filename 4, awk-f ' [:]+ '/eth1/{print $ $} '/
command line common shortcut keys for improving Linux operational efficiency
tab
命令或路径等的补全键,Linux最有用快捷键
CTRL + A
光标回到命令行首
Ctrl+e
光标回到命令行尾
Ctrl+k
剪切(删除)光标处到行尾的字符
Ctrl+u
First, the optimization of Xshell1. Snapshot: Use the snapshot in Vmwera, and then, if an error occurs, we can go back to where the snapshot is.2. Remote connection Server
Windows
Xshell/putty
Android
Linux from getting started to running NOTE0
Understanding Mounts
Mount Source: A generic reference to physical storage devices
Mount point: A directory that already exists
Mount: In the Windows operating system,
Excerpt from: http://www.runoob.com/linux/linux-user-manage.html1. Currently owning usercat/etc/shadow//Login: Encrypted password: Last modified: Minimum time interval: Maximum time interval: Warning Time: Inactivity time: Expiry time: Flag
1. FindFind is the most common and powerful look-up command you can use to find any file you're looking for.Find uses the following format:$ find ---If no parameters are added, find searches the current directory and its subdirectories by default,
I. Input/output redirectionConcept: input redirection refers to importing a file into a command, and output redirection refers to writing the information originally printed to the screen into the specified file.Kinds:1. Standard input redirection
One, the Linux command line1. "Root @oldboyedu50 ~" br/> where root is the username, @oldboyedu50 is our machine, ~ indicates where we are.
[email protected] ~]# mkdir/dataCreate a Directory
[email protected] ~]# ls/data
[email protected] ~]#
First, configure the Java environment variablesI am configured to be 1.8;Second, download the extracted version of Tomcat, upload the server, copy one, the Tomcat decompression to/usr/local/src/under the (unzip where you are happy on the line),
Summary of Common Linux commandsVI NotepadVim notepad++: Wq Write quit: Q Exit does not save: q! Force quit does not save
Cat Display file contents
CP copy copy file or directory default copy file
Man query Help information
echo
Linux man manual showing Chinese
Get Source Chinese Package
wget https://src.fedoraproject.org/repo/pkgs/man-pages-zh-CN/manpages-zh-1.5.1.tar.gz/ 13275fd039de8788b15151c896150bc4/manpages-zh-1.5.1.tar.gz
Extract
Tar
“.” SymbolA point symbol is used to match any character except a newline. For example: R.T can match rot rut, but cannot match root, if using R. T can match root, Ruut, R T (two spaces in the middle), and so on. The following example searches for a
Demand linux system due to the Windows System file format is not the same, resulting in many files can not be directly generic. solution Mount Windows shared folders on Linux using the Mount commandTest environmentRedhat
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