This document uses tomcat-5.5.33 as an example. 1) decompress the package into a folder, depending on the file format. 2) $ vi/etc/profile # open the file in the vi editor for editing (add environment variables) and add the following code at the end
Shell quotes 1. double quotation marks $, ', \, reserved for special purpose. Note that [root @ Centos5test] # echo & quot; \ n & quot; is supported by the escape character "\ n" by default when echo is not added; \ n [root @ Centos5test] # [root @
Unzip tar-zxf file name decompressing-zzip method-x decompress-f name-C put the extracted content in another directory and make a compressed package tar-zc...
Compression and decompression in Linux
.Tar.gz zip package
.Tar.bz2 zip
I recently decided to read the source code of Linux0.11. The best way to learn the core concepts of Linux is to read the source code. The latest Linux source code package is about 70 MB, and the code is very huge. it is very difficult to read it in
& Hellip; # uname-a # View kernel/OS/CPU information # cat/proc/version # View kernel # cat/etc/issue # View OS version # head-n1/etc/issue # view the operating system version # cat/proc...
Some can also be used under freebsd...
# Uname-a # View
1. ask the user to enter the name, age, and gender #! /Bin/bashread-p & quot; Pleaseinputyourname: & quot; nameread-p & quot; Pleaseinputyourage: & quot; ageread-p & quot; Pleaseinputyoursex: & quot; sexecho & quot; Y
1. the user is required to
In linux, the timer function is used to measure the running time header file # include & lt; sys/time. h & gt; timer function intgettimeofday (structtimeval * TV, structtimezone * tz); struct that saves the time struttimeval {l...
Use of linux
Use description to create the static library. a file. C/C ++ is often used to develop programs. However, I rarely use ar commands in command lines, which are generally written in makefile and sometimes used in shell scripts. About library files,
1. the user information is stored in/etc/passwd, the password is stored in/etc/shadow, and the group name is stored in/etc/group2. it indicates 7 columns of file/directory permissions: Column 1: d: directory-: File l: linkfile (connection file) B:
Design a prompt menu for user selection, and perform operations and display based on user selection. Menu: 1. start vi editor 2. start x-windows and enter the GUI 3. start the background printing process. 4. exit ctrl + c #! /Bin/bash // indicates
(1) Linux distribution companies: redhatsuseredflag (2) storage media: the Iide interface is automatically recognized as/dev/hdaScsi interface and/dev/sdaStata (serial hard drive) the soft drive is automatically recognized as/dev/fd0Usb and
We have just installed a Linux system. to connect to the internal network, we need to use Huawei's H3CiNode. I just started using Linux, but I am not familiar with it. However, I was very excited about Linux over the past two days and I was very
On windows, you can use a virtual machine to build the samba service for linux as follows: 1. install samba first; 2. configure the server; 3. start the server; 4. access the service in windows; procedure: install samba: 1. first use rpm-qa |
Tr is used to delete control characters in a file or convert characters. Syntax: tr [& amp; ndash; c/d/s/t] [SET1] [SET2] SET1: Character set 1SET2: Character set 2-c: complement, use SET2 to replace the character-d: delete not included in SET1, and
[Note] Some changes have taken place in the work queue since Linux 2.6.20. Currently, the materials searched from the network are generally about the work queue of the old version, and the introduction of the new version is rarely seen. This article
Nginx has unmatched performance in apache for static web pages, so the following describes the functions of nginx from the shortest to the deep: 1. Compile and install nginx1. initialize environment variables: # yumgroupinstall & quot;
An error is reported when a sh is started in debian today, which leads to the formation of this article: when bashshell is used, we have the following scenario: env. sh -- define public variable run1.sh -- define run code run2.sh -- define run code
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