For beginners, how to modify the Linux user password is not an easy thing, in fact, it is very simple, the following example: If you are logged in as root, modify the root password. As soon as you enter passwd: New password:retype New password :
I. Ordinary usersIf some programs are not installed in the system default path (ie/bin/,/usr/bin,/usr/local/bin/), this time ordinary users want to invoke these commands, must set the path. The method is simple: Log in as a normal user and then
Ubuntu view files and disk space size management(1) View file sizeView all file sizes (including subfolders) under the current folderDu-sh# du-h15M./package16K./.fontconfig4.0K./.cache5.1M./.rpmdb20M.Du-sh * | grep G28G
1. Download the JDK file for Linux system from Oracle website 2. Extract the downloaded files to the /usr/java/jdk1.7.0_79 directory. 3. Create the file /etc/profile.d/development.shand copy the following to the file. Export
1. at--to perform a task at some point in the futureUsage examples: at time: Set a point in time At>command At>ctrl+d Specify time: Absolute Time: HH:MM,DD. Mm. Yy,mm/dd/yy relative Time: now+3minutes units: minutes, hours, days, weeks Blur time:
Today you need to delete the line breaks inside the file, such as a file a.txt:1,2,34,5,61,2,34,5,61,2,34,5,61,2,34,5,61,2,34,5,61. Use Vim to remove newline charactersVim input command:%s/\n//g2. Use SED commands, such as sed ': t; N;s/\n//;b T ' a.
1.tar Packaging commands
Package The jdk1.7.0.45 folder
TAR-CVF jdk.tar.gz jdk1.7.0.45/(compression)
The jdk.tar.gz file is generated in the current directory after packaging is complete
TAR-XVF jdk.tar.gz (Unzip)
Note that the
Thread PropertiesProperty values cannot be set directly and must be manipulated using related functionsThe initialization function is pthread_attr_init, and the function must be called before the Pthread_create functiontypedefstruct{ int
On Linux, the use of Python, sometimes need to python2, sometimes need to python3, below a brief introduction of the Python3 to Python2 method.1. View Python's current versionDirect inputpythoncan view Python version2. Switch the python version in
Socket programming-Basic Introduction and socket programming Basics
Recently, the system has read some unix network programming content and further deepened its understanding of socket. When we look at APUE, we will see little about socket at that
Note that a rookie deploys Tomcat on Linux.
In the past, I used to look for various materials, documents, and thighs In the garden. Today is the first time I have entered the garden. To be honest, I don't know what to do, I will record the process
How to create and display a demo in Linux Command Line
When preparing a speech, your mind may first be occupied by graphic and vivid demo images. It is true that no one will deny the positive effects of a vivid speech. However, not all speeches
20 Linux Command Interview Questions and answers
Q: 1. How can I view the running level of the current Linux server?
A: The 'Who-R' and 'runlevel' commands can be used to view the running level of the current Linux server.
Q: 2. How do I view the
WordPress can trigger Ghost defects on Linux
We recommend that you immediately update the available patches.
This vulnerability was previously discovered by Qualys's security researcher and nicknamed Ghost. It can be exploited by WordPress or
Centos 6.5 Startup Process
Power-on BIOS self-check and load BIOS Information
Check 0th channels, 1st sectors, read MBR (512 bytes)
Start BootLoader (GRUB)
Press e to enter edit mode. Press B to start booting.
Root: Specify the boot
Install redis on CentOS7
Redis installation: $ wget http://download.redis.io/releases/redis-3.0.1.tar.gz$ tar xzf redis-3.0.1.tar.gz $ cd redis-3.0.1 $ make backend enable Server
$ Src/redis-server & Set firewall (skip if firewall is not enabled)
How to remove a specified Login User from Linux
Recently, for business scenarios, we have to kill some users on the server that are in the form of an obstruction.
1. First UseW(OrWho) Check who logged on to the server:
2. Now, we need to
Df for Linux commands
The df command is very similar to the du command, except that the former is used to display the disk usage of the entire system, while the latter focuses more on a specific file or directory. Their options are similar, such
Install maven on centOS
Finished. With the previous Foundation, the following will be done faster.
1. tar-zxvf apache-maven-3.2.5-bin.tar.gz
(Extract)
2. vi/etc/profile
(Open the file, edit the file, add the following variables at the end of
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