Linux log clearing script

Linux log clearing script Python code www.2cto.com #! /Bin/bashecho & quot; linuxclearlog & quot; echo & quot; byseala & quot; echo & quot; ClearlogrootorClearlogIP & quot ;#... Linux log clearing script Python code www.2cto.com #! /Bin/bash echo

Analysis of ELF magic number in Linux

ELF magic number parsing in Linux: In Linux, we can usually use the readelf command to view ELF file information. For example, the www.2cto. comELF file contains 32-bit and 64-bit versions. The structure information of the 32-bit version is as

File descriptor in Linux

A file descriptor is a simple integer used to indicate the files and sockets opened by each process. The first open file is 0, the second is 1, and so on. A Unix operating system usually imposes a limit on the number of files that can be opened by

Linuxgrep prints the matching upper and lower rows

Linuxgrep prints the matching upper and lower rows. if you only want to match the upper and lower rows of the pattern, grep can be implemented. Www.2cto.com $ grep-5 & amp; #39; parttern & amp; #39; inputfile // Print matching rows before and after 5

Linux Kernel loading process

When the Linux kernel is loaded, the kernel module vmlinz (about 5 MB) does not know the hard disk. Originally, the kernel needs to write the same content as the loader to load non-essential modules. Non-essential functions of the www.2cto.com

In Ubuntu,/tmp uses tmpfs to increase the processing speed and security of temporary files.

In Ubuntu,/tmp uses tmpfs to increase the processing speed of temporary files and increase security. 1. Problem background: www.2cto. comUbuntu version: 12.1064bit didn't actually consider using tmpfs from the perspective of improving the speed, but

View the resin version in Linux

In Linux, if the resin installation directory of resin is/home/resin/, run the following command: 1www. 2cto. comcd/home/resin/lib2java-classpath. /resin. jarcom. caucho. version result: www.2cto. com1Resin2.1.1... In Linux, if the resin

Apache prompts DocumentRootmustbeadirectory

Apache prompts DocumentRootmustbeadirectory to change DocumentRoot to/home/test/www, and then prompts Startinghttpd: Syntaxerroronline293of/etc/httpd/conf/httpd. conf: DocumentRootmustbea... after apache prompts DocumentRoot must be a directory

Two problems after the project is deployed to linux

The first problem that occurs after the project is deployed to linux is the exception error generated during tomcat startup: java. io. fileNotFoundException: Mirrors. log (Permissiondenied) www.2cto.com this error is caused by my log4j.

Linux creates scheduled tasks for the current user

Linux creates a scheduled task for the current user. type crontab-e to edit the crontab service file www.2cto.com. for example, the file content is as follows: */2 *****/bin/sh/home/admin/jiaoben/buy/deleteFile. sh save the file and... Linux creates

Obtain the process id and name in linux.

Linux obtains the process id and name as a shared library, and requires statistics on the usage frequency and usage of various applications in this library. In order to make better improvements to the main applications. Www.2cto.com, you need to

_ Read_mostly variable in Linux kernel

Kernel version of The _ read_mostly variable in the Linux kernel: 2.6.14 when reading the socket source code, there is the following sentence (net/socket. c): [plain] staticstructvfsmount * sock_mnt _ read_mostly; I think _ read_mostly is very

View local user shell

View local user shell1 #! /Bin/bash2 # Purpose: www.2cto. com3 view local user shell4line 'cat/etc/passwd | grep $1 '5if [$? -Eq0]; then6echouser: $ 17else8echo & quot; Notuser & quot; 9exit010... view local user shell 1 #! /Bin/bash2 # Purpose: www.

Linux memory virtual disk

In most Linux releases of Linux memory virtual disks, memory disks use the/dev/shm path by default. the default size of the file system type tmpfs is the actual memory size, this is in line with the actual operation habits. The operation path is the

Modify the resolution of Linux text (command line) mode

Modify the resolution of Linux text (command line) mode. the default resolution of my system text mode is 800*600. when I use lynx to browse the webpage, I feel that the font is too large, if you want to adjust the resolution in this mode, google

Space release in linux

When linux disk space is full, using rm-fr to delete log files is not a good solution, the space cannot be released after the file is deleted because of the existence of the file handle opened. it is better to use the following command www.2cto. com1

Brisk VIM (5): copying

Brisk VIM (5): copy brisk VIM (4): modify the kernel... Brisk VIM (5): copy brisk VIM (4): Modify http://www.2cto.com/os/201212/180024.html Copying the same text is particularly effective. in Windows, we are used to choosing the text www.2cto.com

How to solve an error when adding a RAID driver to a USB drive when SUSE10 is installed

When SUSE10 is installed, use a USB drive to add a RAID driver. the root cause is that the USB flash drive is also identified as sd. When www.2cto.com uses a USB drive to load the RAID driver to install the SUSE system, the following message will

Linux users overwrite the global (custom) variable environment

Linux users overwrite the global (custom) variable environment [dev_ydzj_1 @ localhostusr] $ cd $ HOME [dev_ydzj_1 @ localhost ~] $ Pwd/home/dev_ydzj_1 [dev_ydzj_1 @ localhost ~] $ Java-versionjavaversion & quot; 1.6.0 _ 24 & qu linux users

Linux commands for uploading files to the server

Run the $ sshusername @ remotehost2scp command scp in Cygwin to upload files to the server in Linux. The local files can be copied to the specified directory on the remote service based on the SSH protocol. the format is as follows: $

Total Pages: 2732 1 .... 1852 1853 1854 1855 1856 .... 2732 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.