function--functionThe code that repeats in the script and does not have any changes is encapsulated to invoke execution in the appropriate scenario;The programmer calls this encapsulated code a functional body, or a module;In shell scripting, a
The first time to open a 51CTO blog, I hope to insist on updating their blog, improve themselves, but also hope to bring some useful things to you.1. Switch between desktop and command interface: Desktop switch to command interface
I. Setting 777 permissions and user rights under LinuxSet all files for WWW directory to be writable 777
sudo chmod 777-r www (here-r is inherited)
Set all file permissions for the WWW directory to user-owned
sudo chown-hr
As a result of the work, a server Agent has been developed recently, which has a function of writing to the/path/to/file fileAfter the program deployment is complete, the content in the/path/to/file file is just beginning to match the expectedBut
There are several commands: 1, service iptables staus 2, service iptables start 3, service iptables Restart there is a configuration file/ect/sysconfig/iptables execute the first command When found no response, to the/ect/sysconfig/directory is not
Description: Media is the storage directory for devices that are automatically mounted by the system, and MNT is the storage directory for our manually mounted devices.1. sudo fdisk-l view device name2. sudo mount [device name]/MNT (or other
Introduction to Folder-related functionsmkdir Function Create folder#include #include int mkdir (const char *pathname, mode_t mode);RmDir Deleting a folder#include int rmdir (const char *pathname);Dopendir/fdopendir//Open FolderDir is a struct that
Power Type Introduction(Baidu Encyclopedia) Ldo is low dropout regulator, meaning for the lower dropout linear regulator, is relative to the traditional linear regulator. Conventional linear regulators, such as the 78XX series of chips, require an
In the Linux operating system, we will have some of these requirements, for example, we need to use the shell to write some automated operations scripts, and need to save the execution of the script to another text, this is called output redirection.
configuration article:http://jimann.blog.51cto.com/3295893/1918945This article is used to summarize the problems that occur during the configuration process, and the environment is the same as the configuration
No portmap-* server
Sometimes we in the Linux system through the "fdisk-l" command, you will see the/dev/mapper/xxxxx disk, which is likely to be a logical volume, or the configuration of multipath, you can first through "lvdisplay" how to see, then the description is
First, what is the libraryIn essence, a library is a binary form of executable code that can be loaded into memory by the operating system. Because of the different nature of Windows and Linux, the binary of the libraries is incompatible. The
After some of the toss finally installed on Linux node, recorded to avoid forgetting1. Download nodeGo to the official website to download the latest Linux version of the corresponding node.js,node-v6.10.2-linux-x64.tar.gz2. Upload the node file to
first, the experimental targetIn the last "Linux Foundation Network Building Experiment", the internal and external network virtual machine can ping, because temporarily shut down the firewall, but in reality this operation obviously has a great
Ctrl + Actrl + Ectrl + Cctrl + Dctrl + Lctrl + Uctrl + Kctrl + Rctrl + yAnswer:1.1.1Cursor MovementCTRL + a switch to the command line start CTRL + E to switch to the end of the command line1.1.2Cut PasteCTRL + U Clear (cut) the contents of the
??Vi/etc/sysconfig/iptables-A input-m state–state new-m tcp-p Tcp–dport 80-j Accept (consent 80 port via firewall)-A input-m state–state new-m tcp-p Tcp–dport 3306-j Accept (consent 3306 port via firewall)Special tips:Very many netizens add these
The Fdisk tool is a partitioning tool; DF is used to view the usage of the file system (partition)! Fdisk focuses on displaying information about partitioned tables; DF focuses on displaying information about all file systems in the current
Before writing the method of Linux password cracking, although it is very convenient to forget the password, but at the same time others can easily crack your liunx virtual machine, security problems exist.Here are some security protections for
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