FS File system module, this is a very important module, the operation of the file is based on it. All of the methods of the module are synchronous and asynchronous, and the use of the module is described below.
1, detect the current process of the
1. Create a new Folder
mkdir file name
Create a new folder named Test under Home
1 mkdir/home/test
2. New text
Create a new test.sh script at home
1 vi/home/test.sh
3. delete files or folders
Delete the test directory in the home directory
1
[TOC]
Hadoop HDFS Java APIMainly Java operation HDFs Some of the common code, the following direct code:Package Com.uplooking.bigdata.hdfs;import Org.apache.hadoop.conf.configuration;import org.apache.hadoop.fs.*; Import
OS module OS OS module is to operate the operating system, using the module must first import module: Import Osos module function getcwd () function: Get the current working directory format: OS.GETCWD () return value: Path string chdir () Function:
#OS Module#The OS module is the operation of the operating system, which must first be imported into the module:ImportOS#GETCWD () Gets the current working directory (the current working directory is the folder in which the current file is located
In. NET, you can use the file class and the directory class for actions on files and folders (folder), or you can use the FileInfo class and the DirectoryInfo class. Folders are nouns that are used only in Windows operating systems. In the theory of
CP Replication Command
The CP command copies files from one location to another. If the destination file exists, the file will be overwritten; If the destination directory exists, the file is copied to the directory (the directory is not replicated)
Boost::filesystem Use small notes
http://blog.csdn.net/dourgulf/article/details/8589207
Boost Official document: http://en.highscore.de/cpp/boost/filesystem.html
1. The path object is a Cross-platform routing object. There are many ways to access
From today onwards, I want to learn what I think, reference API, will be in the form of handouts, to make a list of things I feel important, deepen the impression.
-------------------------------------------------This is nonsense with the text of
1. Create User Lawman:sudo Useradd lawman
2. Set Password: 123:sudo passwd lawman
3. View the group lawman: groups lawman, or ID lawman
4. Modify Lawmansoft group sudo usermod-g lawmansoft,root lawman (Special note here: Modify the currently
A. Configure the Hadoop development environment under Windows
1. Download Hadoop and Windows version of Winutils
Download the Hadoop compression Pack (the author is using version 2.7.3)URL: http://hadoop.apache.org/releases.html
Download the
File Basic Operations
The command "CP" is used to copy files or directories:
$ CP [-R] Source (folder) destination file (folder)
-R recursively copies the entire directory, which is used by the Replication folder
-V display details, cp-rv or
Ansible is a relatively new automated operations tools, based on Python development, the collection of many operations tools (puppet, Cfengine, Chef, func, fabric) The advantages of the implementation of batch system configuration, batch program
All commands in the history output operationCtrl+p the output History command to scroll up.The CTRL + N output History command scrolls down.CTRL+B cursor Shift LeftCTRL+F Cursor Right ShiftCTRL + A cursor moves to the beginningCtrl+e cursor moves to
First, installation and landing commands1. Enter the graphical interfaceStartX2. Enter the graphical interfaceInit 53. Enter the character interfaceInit 34. LoginLogin5. Shut down the machinePoweroff-P Turn off the power when shutting down the
A directory related to the path 1 directory:Exchange Directory Command CD. Represents this Layer directory.. Represents a previous level directory
Represents a previous working directory~ Represents the home directory where [current user
Original link:初学linux,学了一些简单命令,分享出来,与诸君共勉。如有不当之处,还请多多赐教。ls: Listing directory ContentsParameters:-L lists the details of each file-a lists all files in the directory, including hidden files-R recursively lists all subdirectories[[email protected]
1. cd commandThis is a very basic, is also a common need to use the command, it is used to switch the current directory, its parameters are to switch to the path of the directory, can be an absolute path, can also be a relative path. Such as:
File and directory operations (40 commands)1.ls"Command Action" lists the contents of a file or directory"Command Syntax" ls [options] [parameters]"Common Options"-C Multi-column displays the listed files and content (default option)1 single-column
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.