Modifying file permissions on the terminal of the MAC system is using the chmod command in Linux.chmod user + actions + permissions + filesUser section: Using the letter U for the file owner (user), G for the owner's Group (group), O for other users
How to use Markdown for document work under LinuxIn Linux systems, edit markdown can be used with the Retext tool:sudo apt-get install retextretext Release-Notes.mdTo convert the markdown file to an HTML file. able to use Discountsudo apt-get
Archive Management
tar [parametric] Xxx.tar file
–c Generating the archive file, creating a packaged file-V lists the detailed process of archive files, showing progress-f Specifies the file name, after F must be a. tar file-T lists
sudo: temporarily switch to Superuser mode to perform superuser privileges, prompting for a password that is the current user's password, not the password for the super account. However there is a time limit, Ubuntu defaults to 15 minutes for one
The relationship between a user and a group is that there are several users under the group, and each user must belong to a unique group. A group can be understood as a collection of permissions. User-managed commands are: Useradd, Userdel, Usermod,
ifconfig View native IPLS View all files and folders in the current directoryCd/user Open the User folder if you do not know the full name of the folder to open or long, you can press the TAB keyboard Auto-completion, such as: cd/u + Table key, the
SedFlow Editor, which operates on lines of documentsA Find print1. Print a lineFormat: Sed-n ' n ' p filename N represents a number in single quotation marks, indicating the first lineExample: Print the second linesed -n ‘2‘p /etc/passwdYou can also
Synchronization time we use the crontab command to automate editing time synchronization with scheduled tasksBasic format: CommandTime-sharing Weekly commandThe 1th column represents the minute 1~59 per minute or */1 representationThe 2nd
Kdump+crash using:Kdump is a tool for analyzing the causes of kernel crashes under Linux. When the system crashes, kdump is used to dump the running memory, capture the current running information, and collect all the running state and data
ELF file typeELF (executable linkable format) is the executable file format under Linux, as in the PE (portable executable) format under Windows, COFF (Common File format) A variant of the file format. Under Linux, in addition to executable files,
This article focuses on the common naming conventions for RPM packages that are commonly used in Linux systems.The general format of the RPM package is:name-version-arch.rpmname-version-arch.src.rpmCases:httpd-2.2.3-29.el5.i386.rpmhttpd-devel-2.2.3-2
Process split renamingvoid set_ps_name(char *name) { prctl(PR_SET_NAME, name);}Modify the process long name
Backup process environment variable spacefor (i = 1; i
Write Process long namesprintf(argv[0], name);
Restore Process
1, the command lsof, to find occupy port 80 as an example, use the following:[Email protected] nginx]# lsof-i:The above is no process consuming 80 ports,[Email protected] sbin]# lsof-i:COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE namenginx
Linuxand theUnixare powerful operating systems, are widely used server operating systems, there are many similarities, and even some people mistakenly thinkUnixand theLinuxThe operating system is the same, however, that is not the case, the
###### #准备镜像文件. rhel7_template.img, description file. Rhel7.xml placed inside/var/lib/libvirt/images/###### #记得把文件改成隐藏文件#!/bin/bashExit code:User Input NothingUser input is not a numberUser input out of rangeVM Disk image
1. Download the Curl Toolkit on the website2. Use in the Curl.exe directory (using mode 1)Unzip the downloaded compressed file, through the cmd command into the directory where the Curl.exe.Because bloggers are using a Windows 64-bit system, you can
Day 1 common Linux basic commands and daylinux basic commands
Pwd View Current Directory
Cd Change Directory)
Cd .. go back to the upper level
Ls view files/directories in the current directory
Ls-l list details of the current directory
Ls-lh:
Sleep function error ("Advanced Programming in the UNIX Environment" Third Edition No. 374), programmingno.374
Test proof code:
#include #include #include #include "apue.h"static void sig_alrm(int signo){ /* nothing to do, just returning wakes up
Linux Log Analysis command-cut command usage introduction, log analysis cutLinux Log Analysis command cut
Cut
View File Content
Displays the specified part of the row and deletes the specified field from the file.Description
This command has two
Install TFTP server in CentOS 7
I. Introduction
TFTP (Trivial File Transfer Protocol, simple File Transfer Protocol )), it is a Protocol implemented based on UDP port 69 for simple file transmission between the client and the server to provide file
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