Sometimes, for example, when deciding to download a software version, we need to determine the number of bits and releases of the current system.
Command
Role
Applicable instructions
Uname-a
Displays the Linux kernel version and number of bits
General, recommended
Cat/proc/version
displaying the Linux kernel and GCC versions
General
Shell: get started with Linux, OS X, and Unix Shell Environments
In Linux or Unix-like systems, each user and process runs in a specific environment. This environment contains variables, settings, aliases, functions, and more. The following is a brief introduction to some common commands in the Shell environment, including examples of how to use each command, and
Zookeeper
-- How to view memory consumption of a single process at the OS level
AIX:
$ Svmon-Pt10 | perl-e 'while (-------------------------------------------------------------------------------Pid Command Inuse Pin Pgsp Virtual 64-bit Mthrd 16 MB5111942 svmon 22446 8768 0 22370 Y N4391128 ksh 18298 8724 0 18232 N5308430 perl5.8.8 18262 8724 0 18245 N
AIX: (available in linux)$ Ps gvPid tty stat time pgin
A few days ago replaced a server, re-equipped with a Web server, the approximate process is as follows (due to idle compilation comparison annoying lock, so the direct Yum installation):I. Installing the Web server Software yum install httpdTwo. Install the PHP yum install php* yum-y install php*--skip-brokenThree. installing MySQL yum install mysql*Four. After the above three steps, has completed the Apache, PHP, MySQL installation, then directly simple configuration can be(1) Preparation site
Automatic logon configuration on Linux OS1. Regarding to DSA:A) Ssh-keygen-t DSAb) Cat ~/.ssh/id_dsa.pub | SSH 2. Regarding to RSA:A) ssh-keygen-t RSAb) Ssh-copy-id 3. Switching different nodenode= Automatic logon configuration on Linux OS
Note: Launchpad icon additions and deletions under Mac are related to app files, if you simply want to add a custom icon to Launchpad, and then specify that you want a command to run, it is not recommended to do so. Launchpad's icon management is not as simple as Linux, and the operation is complex.General Method:Add, deleteSimply drag the downloaded app file into the app and delete the app file will also delete the Launchpad icon.Unconventional metho
How can we optimize your system? The following is a simple and small method, but the optimization and adjustment of a system is far more than that. The performance needs to be adjusted according to actual needs. There is no way to meet all system requirements.
1. Check your gcc version:Note that your gcc version must be later than 3.0.
# Gcc -- version
2. obtain your cpu model:
Cat/proc/cpuinfo
3. Create the make. conf file under/etc/and write different contents according to the cpu model.
◆ I
Before giving you a detailed introduction to Linux vmware, we should first let you know about Linux vmware, and then give a full introduction to Linux vmware, hoping to be useful to you. Use the shared folders function under vmware workstation 5 in Linux vmwareLinux to transfer files between hosts and ghosts in vmware.
Note that when compiling a vulnerability exploits a program:
gcc-lpthread dirtyc0w.c-o dirtyc0w
The actual test under Ubuntu 15.10 needs to be changed to:
Gcc-pthread Dirtyc0w.c-o dirtyc0w
Or
GCC dirtyc0w.c-o dirtyc0w -lpthread
To compile correctly.
Other vulnerabilities exploit code:
Https://github.com/dirtycow/dirtycow.github.io/wiki/PoCs
Http://www.tuicool.com/articles/Rjiy2maHow to Patch and Protect Linux Kernel the Zero day local privilege esc
This script was found on GitHub stub.sh :#!/bin/shMyself= ' which"$" 2>/dev/null ' [$?-GT 0 -A - F "$"] myself="./$"Java=javaifTest-n"$JAVA _home"; ThenJava="$JAVA _home/bin/java"fiexec "$java" $java _args-jar$MYSELF "[email protected]"Exit 1For example, if you have a java -jar jar package that you can execute app.jar , just execute:cat stub.sh app.jar > app.run chmod +x app.runThen you can directly./app.runRun your Java program. If you are adding a VM parameter, you can add it to the first l
This article describes how to simplify the steps for logging on to a Linux host from a Mac to improve efficiency. The so-called "login-free" does not actually exist. It just means that the password authentication method is changed to the public/private key pair login authentication method. When the latter method is used, the authentication information is automatically sent by the ssh client each time, so the password is not manually entered. It looks
Basic principles of Linux:1. Consists of a small program with a single target, combined with a small program to complete complex tasks;2. All Documents3. Try to avoid capturing the user interface;4. Save the configuration file in plain text formatGUI interfaceCLI interfaceCommand prompt, prompt #:root $: Normal user Command->shell Send to kernelCommand format:Command option Parameters short option: -character multiple
Linux Fundamentals1. The freedom to run the program for any purpose2. The freedom to learn and modify the source program3. The freedom to redistribute programs4. The freedom to develop derivative versions based on a source programThe Basic Law:1. All Documents2. Short-sized and single-purpose programs3. Combine small programs to complete miscellaneous tasks4. Avoid capturing the user interface as much as possible5. Save the configuration data to a tex
-tulnp #vi /etc/my.cnf #确保skip-networking is removed or blocked, otherwise TCP/IP is not supported Visit; #bind-address Delete the row or change the IP to client ip #重启mysqld服务 #mysql -uroot-p #use mysql #grant allprivilegeson*.*toidentifiedby ' 123456 '; #grant NBsp;allprivilegeson*.*toidentifiedby ' 654321 '; # (above 130 two database user root and zsh) #flush privileges; #重启mysqld服务 #客户端 ping192.168.150.131 mysql-uroot-h192.168.150.131-pmysql-uroot -h192.168.150.131-p #8. Uninstall
finalshell_install.sh www.hostbuf.com/downloads/finalshell_install.sh;chmod +x Finalshell_install.sh;sudo. finalshell_install.shLinux one-click installation Script 1 (Universal)Rm-f finalshell_install.sh; wget finalshell_install.sh www.hostbuf.com/downloads/finalshell_install.sh;chmod +x Finalshell_install.sh;sudo./finalshell_install.shLinux one-click installation Script 2 (suitable for systems without sudo or not joining sudoer, such as Debian)Rm-f finalshell_install.sh; wget finalshell_instal
The clinical symptom is that the hard disk has a metal hitting sound, which is the back-to-position sound of the head,One BuG. In fact, the bug is only an energy-saving function in hard disk power management. After the head is restored, it is used to stop the hard disk.
Mac OS X solution, InstallationHdpamHttp://mckinlay.net.nz/hdapm
This problem also occurs in Linux. The solution isHdparm-B 254/dev/sdx
use: Hadoop fs-rmr uri [uri ...]The recursive version of Delete.Example:
Hadoop Fs-rmr/user/hadoop/dir
Hadoop FS-RMR Hdfs://host:port/user/hadoop/dir
return value:Successful return 0, Failure returns-1.21:setrepHow to use: Hadoop Fs-setrep [-R] Change the copy factor of a file. The-r option is used to recursively change the copy factor for all files in the directory.Example:
Hadoop fs-setrep-w 3-r/user/hadoop/dir1
return value:Successful return 0, Failure returns
1. First run the following commandsudo apt-get install wget BC build-essential gawk genisoimage2. Download the following resources and make allHttp://pan.baidu.com/s/1nvc09ypOriginally there are two of these are enough, released when it came to a less than 150 words, the contents of all lost, no way, had to say a little nonsense.The first one is still speechless.The second, I believe can help you, because the download, especially syslinux time-consuming and unsuccessful, very unfriendly. and Bai
Command-line Operation SVN does not use the interface form of the tortoisesvn intuitive, but anyway, the command line Operation SVN still has it a bit, if you encounter a need SVN add many files what to do? The following commands can help you solve this problemAdd all new files to the SVN repository at once:awk ' {if (= = = "?") {print $}} ' xargs svn addDelete all files that need to be deleted from SVN library at onceawk ' {if (= = = "!") {print $}} ' Xargs RMFinally submit your changes directl
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.