How do I use a USB port storage device in a Linux environment? This is a large number of computer forums appear more than a problem, with this can be seen in many computer players in front of a problem. This article will provide you with a perfect
Objective
Consider the following scenario: The Foo User's home directory has a file file.txt that you want to copy to the bar user's home directory. Linux has strict permissions on the user's home directory, and non-owner or same group users do not
Use the Linux system's own command logrotate to cut the Nginx log.
Nginx installation directory:/usr/local/nginx/
Nginx Log directory:/usr/local/nginx/logs/,/usr/local/nginx/logs/nginx_logs/
1, add nginx log Cutting script
WhoAmI
Function Description:
Show user Name
Grammar:
WhoAmI
Supplementary Note:
Display the user name of oneself, this instruction is equivalent to execute id-un instruction
The difference between WhoAmI and who am I
The WHO command focuses
First, view the installation path of the JDK:
Whereis JavaWhich Java (Java execution path)Echo $JAVA _home
Echo $PATH
Note: If you are in Windows, you can use:
Set Java_home: View JDK Installation pathJava-version: View JDK version
Second,
1. If the system has not been installed squid, in the following order to enter the command to complete the installation
# wget http://www.squid-cache.org/Versions/v3/3.0/squid-3.0.STABLE18.tar.gz//Download Squid agent installation package
# TAR-ZXVF
This article mainly introduces the VMware installation and VMware under the Linux system installation, has a certain reference value, interested in the small partners can refer to.
1. Download install VMware, I installed is VMware 12.VMware from 11
First, create a directory habit
~ $ mkdir tmp
~ $ cd tmp
~/TMP $ mkdir a
~/tmp $ CD a
~/tmp/a $ mkdir b
~/tmp/a $ cd b
~/tmp/a/b/ $ mkdir C
~/tmp/a/b/$ cd C
Should use:
Second, the habit of extracting files
Today has the same knowledge how to batch change file suffix name in Linux, this question was asked three times, so here are a few solutions
A. Rename Solution
1. The Ubuntu system
Rename ' s//.c//.h/'./*
Change the file with the suffix
This article is mainly about the removal of Linux in the case of the deletion of the package, small series feel pretty good, now share to everyone, also give you a reference. Follow the small knitting to come and see.
Take CentOS-7.2 as an example:
Semaphore, sync these nouns have been said in the process of communication, where they mean the same, except that the synchronized objects are different. However, the interface of the semaphore described below is used for the semaphore of the thread,
This article is mainly about the use of the regular task of Linux to clean up 45 days before the weekly log. The server generates a large log file on a daily basis, so that the log files need to be cleaned up periodically in order to keep the hard
1. Mount CD
[Root@localhost ~]# mount/dev/cdrom/media/cdrom/
Mount:/dev/sr0 write-protected, will be mounted as read-only
The CDROM directory under/dev is created in advance.
2. Modify Yum configuration file (file location:/ETC/YUM.
The daemon (daemon) is the process that is running in the background (daemon).
First, the origin of the problemonce the Web application is written, the next thing is to start and keep it running in the background.It's not easy. For example, the
We often need to sit in front of the computer for a long time to do a specific job just to be able to optimize the workflow. This includes selecting and configuring the tools that allow you to work most efficiently. In the long run, simple and easy
This technique is very practical. In particular, remote login to a host a, and then from a landing to B, if you want to do some operation on a, you have to open a finalEnd, very troublesome.
When you use SSH to log on to a remote host from this
http://blog.csdn.net/tommy_wxie/article/details/81942761. OvertureIn the user state, read and write files can be completed by both the read and write system calls (the C library function is actually the encapsulation of the system call). However,
Several file transfer commands in Linux sz RZ sftp SCPRecently, when deploying the system, I contacted some file transfer commands to make a simple record:1.sftpSecure FTP is a file transfer management tool based on the SSH security protocol.
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