What if CentOS cannot use the scp command?In the test, files must be transferred between two virtual machines. The scp command is first generated, and the result is as follows:-Bash: scp: command not foundIf you use the yum install scp command for
Common Linux commands (version 2)-file management commandsFile Management commands
Not recommended: Follow books like command book!
There are about 200 Common commands.
File naming rules:
A) All characters except '/' are valid!
B) It is best not to
1. Key OperationPresskeycode (Key, Metastate)Key is the key event,metastate is the auxiliary function keyExample:Presskeycode (androidkeycode.home) Press the HOME keyPresskeycode (androidkeycode.keycode_a, 1) Press the A key2. Lock screen
Sometimes team development, mobile phone system upgrade, then the corresponding Xcode also need to upgrade, due to team development, it may be necessary to upgrade everyone, then the simplest is to get a good copy of Xcode and then share to everyone.
1. Common Nsfilemanager File methods-(NSData *) Contentsatpath:path//Read data from a file-(BOOL) Createfileatpath:path contents: (NSData *) data attributes:attr//write to a file-(BOOL) Removeitematpath:path error:err//Delete a file-(BOOL)
During normal development, files are often transmitted or shared between Linux and Linux, and between Linux and Windows (Firewall should be disabled). The following is a summary based on the actual usage:
1. Linux and Windows File Sharing
1. When
One, copy files1. Shutil.copyfile (SRC, DST): Copies the contents of the file (not including metadata) from SRC to DST. DST must be the full target file name; copy directory see Shutil.copy (). If SRC and DST are the same file, an error shutil will
1. Manipulating Directory Commands CD directory name to switch or enter the directory; For example, Cd/var switches to a directory named Var under the root directory; CD Mydir Enter Mydir directory under current directory CD-
To start the shell:
/etc/passwd: contains a list of system user accounts and basic configuration information for each user
Each entry has seven fields and each field is separated by a colon
User name
User
The SCP command of Linux can be used to copy files and directories between Linux;==================SCP command==================SCP can copy files between 2 Linux hosts;Command basic format:SCP [Optional parameters] File_source File_target======Copy
SCP command for LinuxThe SCP command of Linux can be used to copy files and directories between Linux;==================SCP command==================SCP can copy files between 2 Linux hosts;Command basic format:SCP [Optional parameters] File_source
linux CP/SCP Command +SCP command detailedName: CPUsage rights: All usersHow to use:CP [Options] Source DestCP [options] source ... directoryNote: Copy one file to another file, or copy several files to another directory.The meter-A as far as
First, common commandsTouch command: Touch [OPTION] ... FILE ...-a:atime-m:mtime-c:ctimeaccess, modify, change three timestamp differences: Access time, Atime, read its content through cat, more, etc. modify: Modify Time , Mtime, change the contents
Linux File Management Class command summary1. text File View class command: Cat,tac,more,less,tail,headCat (TAC): Forward (reverse) displayCat [OPTION] ... [FILE] ...-E: Display line terminator $-N: Numbering each line displayedMore [OPTIONS ...]
File management class commands on LinuxFile descriptors: In Linux, the kernel finds each file through the Inode, but a file can be opened by many users at the same time or multiple times by one user. There is a problem with how to manage the current
1.1 Experimental content
The file organization directory structure of Linux.
Relative paths and absolute paths.
Move, copy, rename, edit, and so on to the file.
1.2 Experimental Knowledge points
The overall content of
linux CP/SCP Command +SCP command detailedName: CPUsage rights: All usersHow to use:CP [Options] Source DestCP [options] source ... directoryNote: Copy one file to another file, or copy several files to another directory.The meter-A as far as
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.