GdB really is a very powerful thing ah, here to record the basic operation of GDB itThe follow-up may be added, but for the time being enough you won't write much.The first is the Ubuntu Terminal 2 most basic operation: (otherwise will gdb but can
tar 打包备份Syntax format: tar "option" "File" tar [options] [file]Note: There must be at least one space between each element in the tar command and in subsequent options and filesOption Description:
parameter Options
Explanatory
Commonly used compression formats:. zip. gz. bz2One,. zip format compressionZip compressed file name source fileCompress filesZip-r compressed file name source directoryCompressed directoryUnzipUnzip compressed file nameIi.. gz format
Related functions: Open, FtruncateTable header files: #include define function: int truncate (const char *path, off_t length);Truncate ("/AAA", 500);Function Description: Truncate () changes the file size specified by the parameter path to the size
file 显示文件的类型Syntax format: file "option" "File" file [options] [file or directory]Attention:
The file command and subsequent options and files must have at least one space between each element
Separate multiple files using a space, you can
df 报告文件系统磁盘空间的使用情况Syntax format: DF "option" "File" df [option] [file or directory]Attention:
There must be at least one space between each element in the DF command and subsequent options and files or directories.
If you do not specify a
To add a scheduled task:-/etc/crontab #这种方式进去的文件有个sample可供参考To view the tasks that have been started:Crontab-lTo view the running status:Service Crond Status/sbin/service crond start/sbin/service crond stop/sbin/service crond restart /sbin/ Service
Look for when the self-store: Linux security Operation Three MusketeersLee Chenguang Industry heavyweight works: "Linux Enterprise Application Case fine Solution", "Unix/linux network log analysis and traffic monitoring", "open source security
The Export command is used to set environment variables.When using single quotes, the variables are not extended and are displayed as-is. Example:If the variable is not defined, nothing is printed:Get the variable value lengthIdentify the currently
Linux command to find filesSome files for a long time do not forget the name, only a vague impression, at this time to find the file command is particularly important! Linux provides more powerful lookup commands than Windows.(This is just a few of
First, review the previous common commands1. Directory Management: ls,cd,pwd,mkdir,rmdir,tree,mv2. File Management:Touch,vi,nano,rm,mv,cp,file,stat3. Time Management:Date,clock,hwclock,calSecond, view the contents of the file commonly used
1-D Specify a new user name for the directory, specify the home directory for the created user2 . Assigning or modifying passwords to users passwd username case give XM a password3-R xh Note: When deleting a user, we generally do not speak home
In the site service area software, in addition to the Apache HTTP service, there is a lightweight HTTP services software---NginxYou can refer to the lamp I wrote earlier, roughly the same.
Install the required environment
Yum install gcc gcc-c+
To write a shell script:1. Create a new file VI start.sh, write the shell content (required content), as shown in the following example:#/bin/bushrmmod. /algo/module/nvpairat/nvpairat.kormmod. /algo/module/nvpair/lnvpair.kormmod. /spl/module/spl/spl.
1. View Host Name#hostname2. Modify Host NameFor CentOS6
Method One:# hostname New_nameMethod Two:# vim/etc/sysconfig/networkHostname=Note: Some people say you also need to modify the/etc/hosts file inside the "Localhost.localdomain--
Share a synchronization Linux system time D script, you can automatically set the system time zone for the East Eight, and synchronize the system, when the Ntpdate synchronization failure will try to synchronize with Rdate, time server us.ntp.org.cn
1) Restart------Press E to enter edit mode2) After entering edit mode, find the line beginning with linux16 and add rd.break at the end of the line.3) Press Crtl+x to start4) Mount the root directory in read-write mode# Mount-o Remount,rw/sysroot5)
Linux1. Operating system:(1) Definition of operating system: the operating system is a system program that coordinates, manages, and controls the hardware and software resources of a computer, located between the hardware and the application(2)
Using semaphore synchronization thread to implement thread access counting function under LinuxHere is the core code, other reference IPC a comprehensive small practice#include
Development requirements to install Linux, Baidu has some information, of course, for reference only, otherwise into the pit.Step one: Make CentOS 7 image file, this step no pit1. Prepare USB flash drive above 8GDownload the words online a lot, here
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