Linux Shell Learning notes the next day _ other

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

One day a shell command text operation series-comm command usage _linux shell

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

Shell command line Operation HBase Database instance detailed _linux

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

CPU load Monitoring script code _linux Shell

Copy Code code as follows: #!/bin/bash Load= ' uptime ' shijian= ' Date +%y-%m-%d-%t ' File=cpustatus.txt Touch $file All= ' Cat $file |wc-l ' printf "$load $shijian \ n" >> $file if [[$all > 60]]; ThenStarttime= ' cat

Except a few pieces of code to login automatically share _linux shell

ssh

Copy Code code as follows: #!/usr/bin/expect-f Set Timeout 30 Set Host "192.168.1.198" Spawn ssh $host Expect_before "No"? { Send "yes\r"} Sleep 1 Expect "Password:" Send "123456\r" Expect "*#" Send "echo my name is

Linux User forces initial password change at first logon _linux shell

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

Delete a Web site with the shell command the latest NB method and code _linux

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 (

Realization method of SSH,SCP automatic landing _linux shell

ssh

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

Introduction to the CP and MV Collocation in Linux {,} in the shell of the use of _linux shell

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

The setting method of ignoring case in Bash shell _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

Shell script implementation of guessing number games _linux shell

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

Linux Get System Startup time sample detailed _linux shell

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

Linux View all users and view user groups (modify user groups) _linux shell

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:

Some of the Linux shell uses tips to collect _linux shell

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

Sqlmap combined with Meterpreter to realize injected infiltration return to shell

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

Git-shell How to restrict user SSH login instances

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 Shell

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

Shell Scripting Exercises

#!/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=

Linux Learning _ssh (Secure Shell)

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

Prohibit root ssh logon to shell scripts in Centos

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

Total Pages: 541 1 .... 219 220 221 222 223 .... 541 Go to: GO

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.