Script for displaying file content

Script C code www.2cto.com # include # include # include # include # include # include int main (int argc, char * argv []) {int fd, I = 1, a, c, t; int tsize; char * buf; buf = malloc (sizeof (char) * 256); if (argv [2] = NULL) c = 1; else c =

Change linux to a root user command

Linux was first exposed to linux after being changed to the root user's command operation. The most common problem in ubuntu is the issue of user permissions, which often results in insufficient permissions. Www.2cto.com if the root user is not

Learn about Linux software configuration

The software configuration of the Linux operating system is described here. The configuration object is not the kernel, but the software. The network configuration is basically completed in the installation system. You can also select liloconf from

Configuration examples in Linux

The Bash Shell in Linux does not support regular expressions. The regular expressions are Shell commands and tools, such as grep, sed, and awk. However, bash Shell can use some metacharacters in regular expressions to implement The Globbing function,

Linux nohup command details

Linux nohup command details nohup command and its output file nohup command: If you are running a process and you think the process will not end when you exit the account, you can use the nohup command. This command can continue running the

How to make the PASH variable configuration take effect permanently in linux

In linux, how to make the PASH variable configuration take effect permanently. In general, the setting of variables in linux and the setting of custom variables and command aliases will expire after you log out of bash, to take effect permanently,

Install maven in Ubuntu

Install maven 1 apt-cache search maven in Ubuntu to obtain all available maven packages www.2cto.com 2 sudo apt-get install maven start to install and download East 3 mvn about m -- version Apache Maven 3.0.4 Maven home: /usr/share/maven Java

Install Ruby on Rails on Ubuntu 12.04

Ubuntu 12.04 install Ruby on Rails Ubuntu 12.04 install Ruby on Rails: install curl, git: www.2cto.com sudo apt-get install curl git-core configure git: git config -- global user. name "array" git config -- global user. e-mail yourown@address.com

Fedora uses two required plug-ins before yum

Fedora tries to configure the java environment in the newly installed fedora by using the two required plug-ins before yum. However, it finds that the installation speed is very slow when using yum. After checking the information, it finds that two

Quick introduction to linux compression and decompression

Quick introduction to linux compression and decompression aims to quickly learn about linux document compression and decompression. For details about a command, refer to man or google. Www.2cto.com GUN-zip (gz) compression: gzip testfile unzip:

Solution to insufficient swap space in linux

There are two ways to increase swap space after linux swap space is insufficient: strictly speaking, there is only one way to add swap after the system is installed, which is the second method in this article, the first method should be to set the

Debian 6.0.6

Debian 6.0.6 local non-free source creation process description: My work environment cannot be on the Internet, so we need to build a local debian source through DVD burning. Debian can be engraved with main and contrib, and non-free does not have

How does a Linux Non-root user use port 80 to start the program?

For non-root users in Linux, how does one use port 80 to start the program? By default, only root users can use ports lower than port 1024 in Linux. Our tomcat, apache, for nginx and other programs, if you want to use common users to occupy port 80,

Use rinetd port forwarding in LINUX

1) install the software rintedDownload rinetd.tarTar xvzf rinetd.tar.gz # extract the programCompile and installMakeMake install2) edit the configuration fileVi/etc/rinetd. conf59.33.120.36 80 192.168.0.72 80Allow 59.33.120 .*Logfile/var/log/rinetd.

Set static IP addresses in Linux

The first thing to do after installing Linux is to set an IP address for Internet access. This article describes how. Set static IP address.(1). Set the command line (this method is only temporary and will not expire after the system is restarted)[1]

Php restart nginx script

Restart nginx by executing/usr/bin/nginxd restart.The script content is as follows:#! /Usr/local/php/bin/phpIf ($ argv [1] = "start "){Echo system ("ulimit-shn51200 ");Echo system ("/usr/local/nginx/sbin/nginx-c/usr/local/nginx/conf/nginx. conf

RHEL 5.5vnc Configuration

Use the gnome desktop environment as an example to describe and configure it!Modify the configuration file/root/. vnc/xstartup. Remember to copy the backup before modification!  The content in the red box is to be modified,# Unset SESSION_MANAGER #

Laruence's Linux private house dish-Basic Learning Article 4

18. Number of directory connectionsWhen "file connection" is performed with a hard connection, 1 is added in the 2nd Field displayed in ls-l. The number of new directories is 2, the number of connections in the upper directory increases by 1. 19.

Nginx is used as the basic application of web Servers

As nginx has unmatched performance in apache when doing static Web pages, the following describes the role of nginx from the shortest to the deep:1. Compile and install nginx1. initialize environment variables:# Yum groupinstall "Development

Linux software installation

Yum uses a Local CD as a software repository to automatically detect dependencies and install dependent packages.1. Mount the optical drive# Mount/dev/cdrom/mnt2. Back up the original software warehouse configuration file# Cp-a/etc/yum. repos.

Total Pages: 5467 1 .... 4728 4729 4730 4731 4732 .... 5467 Go to: GO

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.