Remark: Blog Summary draw lessons from the Horse brother class notesDate: 2015.09.07Linux_bash Environment variablesBash explainedBash can be a command language interpreter /etc/profile.d/*.sh~/.bash_profileFunction:(1) Define environment variables,
First, generate a public private key pair$ ssh-keygen -t rsa -p ' Generating public/private rsa key pair. enter file in which to save the key (/ROOT/.SSH/ID_RSA): Your identification has been saved in /root/.ssh/id_rsa.
Bash Environment configuration:configuration file, the scope of effective, there are two categories:Global configuration:/etc/profile,/etc/profile.d/*.sh/etc/bashrcPersonal configuration:~/.bash_profile~/.bashrcBy function, there are two
Goroot:go installation path, the official package path is automatically matched according to this settingGopath: Working path (in fact, should not be interpreted in Chinese translation, directly said Gopath more appropriate)To install PROTOBUF, you
When I was learning Linux, I skipped something very important. such as partitioning. There is also vim in-depth learning. Partition did not learn because I installed a virtual machine, do not know what the reason, the format of the partition does
ls [option] [directory name ...]Options-A,--all lists all files in the directory, including to hide.-L,--format=long,--format=verbose show more information-D View Directory properties-H Displays user-friendly size information (only the file size is
1.cd1. Name: CD2. Objects used: All Users3. Command format: CD [DirName] (CD and directory separated by spaces)4. Function: Switch the current directory to dirname.The CD enters the user's home directory;CD ~ Enter the user's home
Special permissions on the Linux file system Security context for the process:Prerequisite: The process is owned by the owner (the process is running as the user's identity);(1) Whether the user can start an executable program file as a process,
Special permissions on the Linux file systemPermission model:U,g,OR,w,xSecurity context for the process:Prerequisite: The process is owned by the owner (the process is running as the user's identity);1 Whether the user can start an executable
Because the network configuration of Centos7 has a large gap with previous versions, it is discussed separately.Centos 7 has automatic detection capability for network card devices: (1) network card naming mechanism systemd naming
Linux Disk ManagementHDD :Mechanical hard-diskSSD Solid State DriveMechanical Type:Track tracksSector sector: 512bytesCylinder cylinder: The basic unit of the partition;MBR:Master Bootrecord512bytes446:bootloader64:filesystem Allocation table:
SELinux:Selinux:secure Enhanced LinuxGeneral Linux Systems:DAC: Autonomous access controlSELinux:MAC: Mandatory access controloperating mode:1.strict: Each process is under the control of SELinux;2.targeted: A limited process receives SELinux
In some thread libraries, child processes created by fork in a thread cannot be scavenged by wait or waitpid because of the sig_chld signal that is masked in the thread.The thread main function can be added to the following code to resolve:Signal
Common functions:1. Create a thread with the Pthread_create () function. If 0 is returned successfully.int Pthread_create (pthread_t *thread, const pthread_attr_t *attr, void * (Start_routine) (void*),
Linux&win7 Dual System InstallationHard disk size allocation scheme/= = Storage System File = =/swap 4G = = Swap partition, is also a file system, it is the role of Linux as a virtual memory. Under Windows, virtual memory is a file: Pagefile.sys;
Linux RHCS basic maintenance commands
This article only describes some of the most basic maintenance commands for Linux RHCS.
1. view the cluster status2. The cluster is started normally.3. The cluster is shut down normally.4. Check whether the
How to install JDK in UbuntuDownload JDK
1. Download the related JDK from the Oracle official website.
2. Create a folder under your account and name it "Java". Of course, you can name the folder at will.
That is, in/home/user/Java, my location
Command Line usageThe command line (1) $ symbol represents a reference variable in the command. You can set a variable in export. For example, to view the environment variable command: echo $ PATH, the PATH variable is referenced through $ (this is
Linux personal operation habitsEdit ~ /. Add the following content to the bashrc file and define the alias #. bashrc # User specific aliases and functions alias rm = 'rm-I 'alias cp = 'cp-I' alias mv = 'mv-I 'alias cls = 'clear' # under DOS command,
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