Variable
Get the native host name
#hostname
Get the system version number
#uname-R
Get CPU Type
Get the CPU working frequency
Cat/proc/cpuinfo
Get Memory
The comm command compares the data in each row of the two sorted files and displays their results, and if no arguments are specified, the Comm command reads the two files and then generates three columns of output:1> only the rows that appear in the
Manipulating the HBase database in the shell command line
Shell control
Enter the shell command line interface, execute the hbase command, and attach the SHELL keyword:
[Grid@hdnode3 ~]$ hbase shell
hbase shell; enter¨help¨for list of
The following describes how to force users to change their passwords the next time they log on.
Each user account under Linux is associated with the various configuration and information associated with the password. For example, it remembers the
Copy code code as follows:
#
Is it really a headache, or do you want to write a shell script to get rid of these scripts
Copy Code code as follows:
#!/bin/sh
LS $1/*.htm | While read file
Todo
Sed-i-E "/if (
Example:A is a local host (that is, a machine used to control other hosts);b is a remote host (that is, a controlled machine server), if IP is 192.168.60.110;Both A and B systems are Linux.
To run a command on a:# ssh-keygen-t RSA (three
Often see commands like the following in blogs or forums the curly braces extend brace expansion {} Shell functions
Cp/etc/httpd/httpd. {,. Bakup}
Or is
MV Resume{z,}.doc
So what does it mean in the uinx/linux shell
Most people will change it when they use Bash, because the default settings are really hard to use.
Refer to the following ~/.INPUTRC settings:
Copy Code code as follows:
# don't show hidden files in the list
Set Match-hidden-files off
The generated password and user input can accept duplicate numbers.So the relative general rule of guessing numbers may be much more difficult.
This version of the rule:
a--numbers are right, position is right.b--excludes the result of a, the
1. Preface
Time is very important to the operating system, from the kernel level to the application layer, the time expression and precision of the same. The Linux kernel uses a constant named Jiffes to compute the timestamp. Application layer has
1. View all users in Linux
(1) in the terminal. In fact, only need to view the/etc/passwd file on the line.(2) Look at the third parameter: More than 500, is built behind the user. Others are users of the system.
or use cat/etc/passwd |cut-f 1-d:
Check to see if the remote port is open to bash:
Copy Code code as follows:
echo >/dev/tcp/8.8.8.8/53 && echo "Open"
To get a process into the background:
Copy Code code as follows:
Ctrl + Z
To move a
Build a Php+mysql platform, the range for DVWA, set the SQL injection range level of low (easy to test use).Enter 1 in the Submit box, grab the package with Burp, copy the package data to the Cookies.txt document, and drag to the Kali
Although Git is a distributed version management system, for team project development, it is common to create a git server on a separate server. Similar to Svn,git server, there are several ways of configuring it. For more information, refer to
XAMPP Default configuration Take ShellFirst, let's start with science. XAMPP (Apache+mysql+php+perl) is a powerful built-in XAMPP software Station integration package is an easy-to-install Apache release with MySQL, PHP and PERL. XAMPP is really
#!/bin/bashecho "Current datetime is:" ' Date 'echo "Hello world!"#使用变量: You can use single or double quotation marksYour_name= "Wang"Echo $your _nameEcho ${your_name}Str= ' Shellstudy 'Echo ${str}#只读变量: Cannot change its valueMyurl=
SSH (Secure Shell) is a set of remote operation of Linux and file upload and download software,Very useful, almost all Linux programmers in a software company will use SSH.Preparatory work:: Http://files.cnblogs.com/hongten/SSHSecureShellClient-3.2.9
Linux prohibits root users from logging on through sshRoot users are prohibited from logging on through ssh by operating the sshd_config configuration file.1. Open the ssh configuration fileVim/etc/ssh/sshd_config2. Find the following line of text
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