http://mtnt2008.iteye.com/blog/710452
Add color to the grep command under Linux
Java code grep--color "test" Test.json
grep--color "Test" Test.json
Automatically color grep
Java code vim ~/.BASHRC alias grep= ' grep--color ' source ~/.BASHRC
Vim
Modifying environment Variables
Modify the new Tomcat bin/catalina.sh file, plus the newly configured environment variable
Modify the following in the new Tomcat8.5/con/server.xml
This article does not do other superfluous explanation, just
under Linux , if you need to add a service that runs automatically as the system starts, just add it to the /etc/rc.d/rc.local script file.
But there is a problem is that the script can be terminal under the boot of the normal operation, placed in
Linux every once in a while will upgrade the kernel, so fill the loophole, but brought us a bad mood, because I am a multiple system machine, so every boot grub is a big option, is very bad, recently in the online search vegetarian, and finally
In this article, Linux refers to the "kernel" of an operating system, not a "Linux distribution". November 25, Linux founder Linus Torvalds received the "information weekly" E-mail interview, clearly illustrate some of his own important points,
---View the default maximum number of file handles for the system, which defaults to 1024
# Ulimit-n
1024
----See how many handles are open for the current process
# Lsof-n|awk ' {print $} ' |sort|uniq-c|sort-nr|more
131 24204
57 24244
57 24
When you open a file with VI, because the file is too long, how to find the keyword you want to find.
There is no menu-〉 to find in VI
But it doesn't matter, you are in command mode to knock the Pole (/) at this time in the status bar (that is,
The obsession with Linux more and more serious, recently suddenly fascinated with the development of embedded Linux, really is twists, in short, interest, my footsteps will follow where, no stay. Ha ha.
In the library read a lot of embedded Linux
file I/o:open creat close Lseek Read Write DUP dup2 sync fsync fcntl IOCTL
All functions are for file descriptors.
All are atomic operations, and this is especially important when sharing files among multiple processes.
int open (const char
The Linux Input Device is an important subsystem, before the introduction of the actual example, a cursory understanding of the API.
Linux Input Device
INPUT.C is the Linux "input" driver, which mainly supports the input of keyboard and mouse; The
How to learn Linux
As a representative of the modern operating system, the Linux operating system is very complex, with a dizzying array of components running synchronously and communicating with each other. For starters, I think the best way to
Original address:: https://blog.csdn.net/zhengwei125/article/details/53019651
Related articles
1, Linux Add/Remove virtual IP address-zt----http://www.51testing.com/html/00/130600-225976.html
Add a virtual IP 192.168.26.74 to the NIC Eth1
1.
Yesterday to solve a bug, about the file descriptor, this problem has been encountered a long time ago, this time again really should not.
The problem is this.
fopen () Opens a file, then does some action, and then the function finishes ... The
Alloc_bootmem_low_pages () is defined in: include/linux/bootmem.h, defined as follows:
#define ALLOC_BOOTMEM_LOW_PAGES (x) \
__alloc_bootmem_low (x, page_size, 0)
__alloc_bootmem_low () is defined in: MM/BOOTMEM.C, defined as follows:
void * __init _
1If you can remotely operate, set up SSH service on the serverA, modify the Sshd_config file, the command is: vi/etc/ssh/sshd_configB, remove the comment for #passwordauthentication No and modify the No to YesC, remove the comment #permitrootlogin
The Udev management under RHEL7 is somewhat different from the previous version, and the following is a brief introduction to the Udev configuration based on LVM.1. Create a logical volume[[email protected] ~]# pvcreate /dev/sdb[[email protected] ~]#
3rd day of Linux learningTime: 20180718DirectoryLinux User and Group managementSudoKernel spaceUser spaceLibrary callsSystem callsHow to install a virtual machineBasic knowledge of computersLinux User and Group managementAdministrator Root ID
LS: The list of lists means, used to list files in the directory to list the files in a given directory, the parameter is empty default list of files in the current directory.Usage is: LS [options] [directory]The common options are-a,–all lists all
Step1: Check if SVN Server is already installed.Svnserve--versionStep2: Performing the installation Step3: Creating a code Warehouse Enter the corresponding directory: DescriptionConf: Configuration fileDB: Data Store fileHooks: script, SVN
Download JDK Compression packJdk-8u111-linux-x64.tar.gzUpload JDK to serverUnpacking the installation package#sudo tar-zxvf jdk-8u111-linux-x64.tar.gz (root user does not need to add sudo)Move to extract package to installation directory
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