4. Basic Redis commands-list, basic redis-list1. The list type is implemented using a double linked list. Therefore, if you want to add elements to both ends, the time complexity is O (1 ), the faster the element gets closer to the two ends. However, the cost is that accessing elements through indexes is slow.2. the ma
, respectively, from the left pop-up, from the right pop-up, the return value is a pop-up value. (pop-up means to remove the value and return the value)
127.0.0.1:6379> lrange mylist 0-1
1) "-2"
2) "-1"
3 "" 0 "
4)" 1 "
127.0.0.1:6379> Lpop MyList
"-2"
127.0.0.1:6379> rpop mylist
"1"
127.0.0.1:6379> lrange mylist
-0-1 1) "-1"
2) "0"
Combined with the above four commands, you can implement stacks and queues.
Stacks: lpush and lpop or usin
1. show command:Display RMAN configuration: RMAN> show all;
2. Report command:2.1. RMAN> report schema the physical structure of the target database;2.2. RMAN> report need backup days = 3; report data files not backed up in the last three days;2.3. RMAN> report need backup days 3 tablespace users; data files not backed up in the users tablespace for three days;2.4. RMAN> report need backup incremental 3. report the number of incremental backups required for data file recovery more than three ti
Document directory
Common commands
Less common commands
Abor
Acct *
Allo
Appe
Cdup
CWD
Dele
Help
List
MDTM
MKD
Mode
NLST
Noop
Pass
PASV
Port
PWD
Quit
Rein *
Rest
RETR
RMD
RNFR
RNTO
Site *
Size
Stat
Stor
STOU
Stru
Syst
Type
User
Note that commands marked with a * are not implement
The list type in Redis is somewhat similar to an array in a programming language, and the list type, as shown in the following illustration, is actually a two-way linked list structure that controls the data in the list by Lpush, Lpop, Rpush, rpop commands, so the
/gravity /center ">Found two commands together, namely student and where are connected together. So when you use the a command to add a command to the buffer to hit two return, the first carriage return is a command must take the carriage return, the second carriage return is added as the beginning of the new code to the buffer, for example:Q: Suppose the buffer has 3 rows of SQL commands, you need to join
In Win7, you cannot view the file list using the dir or ls commands of ftp. In this case, you cannot view the file list using the dir or ls commands of ftp in command line mode of Win7, you cannot view the file list using the dir or ls c
), and then
C-c C-c is M-x comment-region
The cancellation is like this:
M-x recomment-region
Added on 08.05.14
Emacs Bookmark-related commands
Ctrl x R m: creating bookmarks
CTRL x R L: Open Bookmark list
CTRL x R B: Jump to the location specified by the bookmark
M-x bookmark-write: Write a bookmark to a specific file
M-x bookmark-load: Loading bookmarks from specified file
-----------
What is lisp and
Source: Nanyi's Blog
Website: http://www.ruanyifeng.com/blog/2015/12/git-cheat-sheet.html
I use Git every day, but I can't remember many commands.In general, the daily use of just remember 6 commands, you can. But skilled use, I am afraid to remember 60~100 a command.Here's a list of common Git commands I've compiled. Several special nouns are translated
NanyiDate: December 9, 2015I use Git every day, but I can't remember many commands.In general, the daily use of just remember 6 commands, you can. But skilled use, I am afraid to remember 60~100 a command.Here's a list of common Git commands I've compiled. Several special nouns are translated as follows.
Workspace: Work Area
Index/stage: Stagi
Here's a list of common Git commands I've compiled. Several special nouns are translated as follows.
Workspace: Work Area
Index/stage: Staging Area
Repository: Warehouse area (or local warehouse)
Remote: Repository
First, create a new code base
# 在当前目录新建一个Git代码库$ git init# 新建一个目录,将其初始化为Git代码库$ git init [project-name]# 下载一个项目和它的整个代码历史$ git clone [url]
Sec
Command Xiaoming refers to zookeeperPasswd Change User PasswordPwd print Current DirectoryCd change DirectoryLs to list files in the directoryWildcards wildcard * matches any number of charactersWildcard? Match a single characterType of the file to be printedCat display file contentPr display file contentPg page displays the file content on one page at a timeMore display file content on one page at a timeClear Screen ContentCp copyChown Modify file ow
Requirements: List which commands are most used and enter them into Chy1.txtIdea: Our command is all there is a history file/root/.bash_history This file, you need to sort the commands used here.[[emailprotected]shell]#vimhistory.sh#!/bin/bash#thisisliechu Historyzuiduodminglingsort/root/.bash_history|uniq-c|sort-nr|head >/tmp/chy1.txt (script command explanation
connections# netstat-s # View Network statisticsProcess# ps-ef # View All Processes# top # Real-time display of process statusUser# w # View active Users# ID # last # View user log in log# cut-d:-f1/etc/passwd # View All users of the system# cut-d:-f1/etc/group # View all system groups# crontab-l # View Current user's scheduled tasksService# chkconfig--list # list all system services# chkconfig--
Oracle-hr Table query command exercises (a complete list of select commands) switch to the oracle hr user to practice 1. query the names and salaries of employees whose salaries are greater than 12000. Select initcap (concat (last_name, first_name) "name", salary from employees where salary> 12000; 2. query the name and department number of an employee whose employee number is 176. select initcap (concat (l
List of mysql common monitoring Script Commands[Java] #/bin/sh# Check whether mysql server provides services normallyMysqladmin-u sky-ppwd-h localhost ping# Obtain the Current Status values of mysqlMysqladmin-u sky-ppwd-h localhost status# Obtain the current connection information of the databaseMysqladmin-u sky-ppwd-h localhost processlist# Mysql dump data exportMysqldump-uroot-T/tmp/mysqldump test test_ou
[[Email protected] ~]# stat test/test2 File: ' test/test2 ' size:0 blocks:0 IO block:4096 Plain Empty text Pieces device:803h/2051d inode:261657 links:1 Access: (0744/-rwxr--r--) Uid: (500/user1) Gid: (500/TESTG roup) access:2013-05-10 09:00:36.092000531 +0800 modify:2013-05-10 09:00:36.092000531 +0800 change:2013-05-10 09:30:58 .788996594 +0800Atime does not necessarily have to be modified after accessing the file, because: when using the Ext3 file system, the Atime information is not updated i
; Rpop Key
Here is a good understanding, respectively, from the left pop-up, from the right pop-up, the return value is a pop-up value. (pop-up means to remove the value and return the value)
Combined with the above four commands, you can implement stacks and queues.
Stacks: Lpush and Lpop or using Rpush and Rpop.
Queues: Lpush and Rpop or using Rpush and Lpop.
3, get the number of elements in the list
Git is used every day, but a lot of commands can't remember.In general, the daily use of just remember 6 commands, you can. But skilled use, I am afraid to remember 60~100 a command.Here's a list of common Git commands I've compiled. Several special nouns are translated as follows.
Workspace: Work Area
List the ten most commonly used Linux commands-general Linux technology-Linux technology and application information. For more information, see the following. Currently, Linux is inseparable from commands, so we still need to learn a little bit about English. In Linux, there may be 50 or 60 commonly used commands, such
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.