${mytest[*]}one two seven four five$
1
2
3
4
To delete an element in an array: unset, but note some issues
unset mytest[2]$ echo ${mttest[*]}one two four five$ echo ${mytest[2]}$ echo ${mytest[3]}four$
1
2
3
4
5
6
7
8
Delete entire array: unset + array Name
unset mytest$ echo ${mytest[*]}$
1
2
3
4
5.8 Using command aliases
Introduction to Shells and scripts
The Gnu/linux Shell is an interactive tool that provides users with the means to start programs, manage files on file systems, and manage processes running on Linux systems.
At the heart of the shell is the command line prompt
It's the interactive
How to Use and run PHP scripts and Linux command-line php scripts through linux commands
Below we will share with you how to use and run PHP scripts through Linux commands.
PHP is an open-source server-side scripting language. At first, these three letters represent "Persona
We sometimes encounter the need to restrict a Linux user to add, modify, delete only in the specified directory, and only use SFTP to log on to the server, not SSH operation. These can be implemented by configuring the SFTP service.There are vsftpd and internal-sftp for the SFTP
Tags: summary complete roo Connect FTP service ICE intern successfully builtTransferred from: http://blog.csdn.net/superswordsman/article/details/49331539Recently work needs to use the SFTP server, is the network of various methods, especially the issue of permission settings to get dizzy, now will build their own process summed up a bit, sorting out a simple way for everyone to reference.On the 1th, add the SFTP
host1 to the local directory.
Scp supports many options and allows file copying between two remote systems:
Scp myname @ host1: remote_dir/filename myname @ host2: another_dir
For more information, see the manual.
Obviously, when using scp, you must know the exact Directory of the remote machine, so sftp is often used as the first choice.
Sftp
Sftp uses ssh2 fo
On the Linux platform, the php Command Line program processes pipeline data, and the linux Pipeline
This document describes how to use the php Command Line program on the Linux platform
, equivalent to X (lowercase x),,, also equivalent to shit+2 z in command modeq! Do not save exitCommand mode:HJKL control up and down functionM Middle PositionL The last line of the current screenYY Copy, 8yy: Indicates copying 8 rows from the line where the current cursor is locatedP PasteDD Cut, 8DD: Cuts 8 lines from the
Pick: a Linux Command Line fuzzy search tool | Linux China, pick fuzzy search
It allows you to select from a series of options through the ncurses (3X) interface, and also supports fuzzy search. This tool is useful when you want to select a directory or file whose name contains non-English characters.
-
: Network Disk DownloadContent Introduction······This book is a comprehensive tutorial on Linux command-line and shell script programming. The book is divided into four parts: the first part introduces the Linuxshell command line, the second part introduces the Shell Script
In the book "Linux Command Line", the 3rd chapter is the Linux system.The concept is too large, but the content of this section is the core of the Linux system-view Linux systems.ls commandDisplays the directory's own information
This article describes how to install Linux on the hard disk and start Linux from the Grub command line. It is helpful for readers who want to install Linux on the hard disk and start Linux from the Grub
Run the following command in linux to open a browser:
Linux Command Line: How does Lynx browse Chinese Web pages? 1 ):
First, press the o keyboard to enter the set screen.
Display character set: [chinese] B-4.
Assumed document character set(!): [euc-cn]
statement will download the index.php to the local/home/directory from the/var/www//directory of the remote host.Sftp> put/home/downloads/linuxgl.pdf/var/www/This statement uploads the Linuxgl.pdf file under the local/home/downloads/directory to the remote host/var/www/directory. Note that the absolute path is used here.If you do not know what the remote host directory is, the PWD command can help you query the current path of the remote host. Query
directory of the remote machine, so sftp is often used as the first choice.
Sftp
Sftp uses ssh2 for data connections, so file transmission is as secure as possible. Two main reasons for using sftp to replace ftp are:
1. Password is never transmitted in plain text to prevent sniffer attacks.
2. Data is encrypted durin
logged in,But if only ssh 10.45.7.61, this time Linux will automatically get the current logged on user, and given to this command, this will become the current user @10.45.7.61, but because of our password-free login under the root user, this time to become an Oracle user, Although it is also ssh [email protected], but the user has changed, so the same can not be automatically logged in. As shownExit SSH
Record Learning Linux system related knowledge points, welcome everyone to shoot brick exchange, grow together: qq:2712192471 Author background: Front-end Development Engineer | Python | Web Security Enthusiasts Linux command line: System shutdown restartshutdown-h now shut down system (1)init 0 Shutdown system (2
Because the SQL file is exportedIn your original website service provider to use phpMyAdmin Export database as SQL file, this step everybody, do not repeat.Uploading SQL filesPreviously said, we do not install FTP on the cloud host, how to upload it?Open the FTP client software, such as FileZilla, using the server IP and root and password, be sure to connect using the SFTP connection, so as to connect to Linux
Linux remote file acquisition through sftp Txt code linux remote file acquisition through sftp steps: 1) sftpusername @ hostname // enable the default port www.2cto.com//if you want to specify the port number, the syntax is: sftp-pportusername@hostname//or...
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.