Built-in commands and external commands under Linux1, the Linux command can be divided into internal commands and external commands:Internal commands are transferred into memory when the system starts, and are resident in memory, so the execution
1. Modify the command promptEnvironment variable: PS1:\u: Current user name\h: Host Name\h:fqdn, host name in full format\w: The base name of the current working directory\w: The current working directory absolute path\$: Prompt\ t: Show timeView
#include #include int truncate (const char *path, off_t length);int ftruncate (int fd,off_t length);The truncate and ftruncate function cause the regular file named by path or referenced by FD to is truncated to a size of PreciselyLength
The so-called Tarball software, in effect, refers to the source package downloaded from the network. Usually ends with. tar.gz and tar.bz2. The difference between GZ and bz2 is that the compression algorithm is different (bz2 's compression effect
Linux systems generally fall into two main categories: 1, Redhat series: Redhat, Centos, fedora, etc. 2, Debian series: Debian, Ubuntu, etc.Linux system, TCP/IP network is configured through a number of text files, you need to configure these files
Vmstat is a fairly comprehensive profiling tool that can be used to observe the system's process state, memory usage,Performance information such as virtual memory usage, disk I/O, System interrupts, context switches, CPU usage, and so on.Main usage:
Install the test system:hardware: Ordinary PC,software: Redhat Linux as 4 2.6.9, installation system comes with lm_sensors-2.8.7-2.i386You can also download it from [Url]http://www.edgedesign.us/about/lm_sensors[/url]This software can collect the
Under Linux we use VSFTP as our FTP server.Server Os:redhat 6.31. Check if VSFTPD is already installed on the serverRpm-qa | grep vsftpd2. If there is no corresponding vsftpd RPM package, we need to download the installationYum Install vsftpd3.
Deployment of the VNC application for Linux 1.1.1 Install packages[Email protected] ~]# rpm-q vnc-server[email protected] ~]# Yum install vnc-server VNC 1.1.2 Set User Password[Email protected] ~]# VNCPASSWDPassword:Verify:Note: After the
When the size of the disk exceeds the standard, there will be alarm prompts, if you know the DF and du command is a very wise choice.DF can view the first-level folder size, usage scale, file system and its hang-in points, but there is nothing to
Move the cursor in general mode
h or LEFT ARROW key
The cursor moves one character to the left
J or DOWN ARROW key
Move the cursor down one character
K or UP ARROW key
Move the
#!/bin/bash#set envExport lang= "en_US. UTF-8 "Export path= $PATH:/bin/sbin:/usr/sbin#whether ROOT to running userif [[$ (WhoAmI)! = root]];thenecho "Please su-root run the script."FiService= ' which service 'chkconfig= ' which chkconfig '.
In a long time not to share with you the Linux command, Linux is a command-based system, a number of commands and their role, it is not too realistic to remember. Therefore, it is important to use tools such as man info Whatis to see what the
1.awkawk is a powerful text analysis tool, with the search for grep and the editing of SED, which is especially powerful when it comes to analyzing data and generating reports. Awk is the equivalent of a programming language with a lot of its own
Linux open ports
In Linux, the server cannot be connected when software access is installed. In this case, check whether the corresponding port is enabled. For example, after svn is installed, unable to connect:
When the svn service is started, you
Use of process management tool htop/glances/dstat, htopglances
Use of process management tool htop/glances/dstat
Linux Process Management Tools: pstree, ps, pidof, pgrep, top, htop, glance, pmap, vmstat, dstat, kill, job, etc.
What is htop?
Htop is
LinuxMalloc analysis-from user space to kernel space
This article introduces the implementation of malloc and the heap extension of malloc, and analyzes how the ing between virtual addresses and physical addresses is realized.
Ordeder original,
Configure multi-nic aggregation (bonding) in CentOS)Some applications may have the biggest bottleneck in network data transmission (such as diskless network systems in some places). To solve this bottleneck, the convergence technology of multiple
How to install svn using yum in linux
After installing the yum source, install mysql, svn and so on will become quite simple, the following will be simple to install svn with yum, on the yum source configuration please refer to:
Linux text processing tool1. awkawk is a powerful text analysis tool. Compared with grep search and sed editing, awk is particularly powerful in data analysis and report generation. Awk is equivalent to a programming language and has many of its own
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