Summarize some of the Linux system programming related things, because the Linux system programming involves the operating system but does not need to drill into the kernel (kernel code is a huge project), through the system interface can be glimpse,
7.linux File and directory managementI. Paths and directories1.1 Relative path and absolute path:Relative path: Relative to the current directory's pathAbsolute path: The path relative to/1.2 Show current path and toggle current pathPWD Displays the
6.10 Access ControlFor location segmentAllow: sets which or those hosts are allowed to access, separated by a space between multiple parametersDeny: Sets which or those host access is forbidden, separated by a space between multiple
PID: ID of the processUSER: Process OwnerPR: The priority level of the process, the smaller the higher the priority is executedNi:nice valueVIRT: Virtual memory consumed by the processRES: The physical memory occupied by the processSHR: Shared
How to view version information under Linux, including the number of bits, version information and CPU core information, CPU specific models, etc., the entire CPU information at a glance.1. # uname-a (Linux view version current operating system
1. Management Server Common commands
1. View online users: Who | Grep–v Root
2. Partition usage: df–h
3. View memory Information: free–m
4. View current time: Date
5. Write all events to the message:/bin/date >> Mail.cron
View a folder is the mount path, for example, to see where the OPT folder is mounted: df/opt[Email protected]:~# df/optFilesystem 1k-blocks used Available use% mountedon/ DEV/VDA1 41151808 6999740 32038640 18%/See if Linux is 64-bit
Recently found slag slag ECS memory is always not enough, memory is too small accidentally ran out, use up the memory used to do the cache can be faster, but the memory is always a meal of the card, it is a bit unbearable, and then wrote the release
First, installationSince many times are installed without the network, so download RPM package to install, I here environment is as follows:System: Redhat Enterprise 6.5VSFTPD installation package: vsftpd-3.0.2-21.el7.x86_64.rpm1. Installationrpm
1. Two ways to turn off SELinuxSetenforce 0Modify the/etc/selinux/config file to set selinux=disabled, and then restart the server.-----------------------------------------------------------------------------------------------------2. The user is
First Open the Timer log (the default is commented out)The Cron log feature uses the SYSLOGD service, different versions of Linux may have different software, here are two common types:Rsyslog->Location in/etc/rsyslog.d/50-default.confUse Vim to
System startup processBOIS (Basic input/output System) basic input/output system: The interface between hardware and software, and is a very basic interface.Grub (Grand Unified BootLoader) Multi-os launcher:/etc/grub.conf Here's a grub.conf more
First, download Tomcat on Tomat websiteIi. upload the downloaded tomcat to the current user folder of the Linux system using FTPThird, unzip the Tomcat into the current folderIv. switch to the bin directory, execute./startup.sh, start the Tomcat
First, TOMCAT7 package downloadTomcathttp://tomcat.apache.org/download-70.cgiAfter the download is complete, upload the package apache-tomcat-7.0.82.tar.gz to Linux, as uploaded to the/root path. Upload files can be transferred via Xshell new file,
sed 字符流编辑器SED is the abbreviation for the stream editor (character stream editors), referred to as the Liu Editor.SED is a powerful tool for manipulating, filtering, and transforming text content. Commonly used features include quick additions and
Recently, you need to develop a shell script on Linux to summarize how the Linux VI editor is used.1. Start VIVI filenameIf the file exists, open and display the content, or if the file does not exist, create a new file the first time you save it.2.
Requirements background:1, create 2 accounts to the system used by the user to read the file information provided by our server. Only allowed to see the qualified directory, the file under the directory only read-only permissions, prohibit shell
Linux face questions1:zip Decompression Method2.Linux kernel boot, read the file system to be loaded from the file __Answer:/etc/fstabEach file in the 3:linux file system is identified by the __ node.Answer: Index node4.VI editing mode, mode
Recently in the ready to run on the mobile side of the deep learning training model, on the RK3399 board installed scipy times wrong. Online check, because of insufficient memory, make a swap partition is done. So how do you swap partitions? Talk
January 10, 2017, Tuesday Linux command Exercise 1, Statistics/usr/bin/Directory of the number of files; Ls/usr/bin | wc-lDetermine if the/home/goldin directory has file 2, remove the shell of all the users on the current system, require that each
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