Cat command (conversion), cat command
Original article: http://www.cnblogs.com/peida/archive/2012/10/30/2746968.html
The cat command is used to connect files or standard input and print. This
The Cat (concatenation) command is one of the more commonly used commands in Linux/unix open source systems. We can use the Cat command to create one or more files, view the contents of the file, concatenate the files and output the content to the end device or new files, this article will be an example of the Linux
Linux Command -- cat, linux -- cat
Cat function: 1. output text content to the screen 2. output text content to another file
Parameter description:
-N: numbers all rows.
-B: no blank row number
-S: multiple consecutive blank rows are displayed as single rows.
Example:
---------------------------------------------------
Apache-->hadoop's official Website document Command learning:http://hadoop.apache.org/docs/r1.0.4/cn/hdfs_shell.html
FS Shell
The call file system (FS) shell command should use the bin/hadoop fs scheme://authority/path. For the HDFs file system, Scheme is HDFs, to the local file system, scheme is file. The scheme and authority parameters are optional,
Not much to say, directly on the dry goods!GuideInstall Hadoop under winEveryone, do not underestimate win under the installation of Big data components and use played Dubbo and disconf friends, all know that in win under the installation of zookeeper is often the Disconf learning series of the entire network the most detailed latest stable disconf deployment (based on Windows7 /8/10) (detailed) Disconf Learning series of the full network of the lates
The function of the Cat command is to connect files or standard input and print, and today we will introduce you to the cat commands in Linux.For more information on Linux commands, see: Linux Command Quick check manualLinux's cat commands are typically used to display file
Today in Bluemix easy to build a Hadoop cluster, Candide is the Hadoop command to forget to find out, today's supplement restudying
FS Shell
Calling the file system (FS) shell command should use the form of Bin/hadoop FS cat
H
Use bin/hadoop FS Scheme: // authority/path. For HDFS file systems, scheme isHDFSFor the local file system, scheme isFile. The scheme and authority parameters are optional. If not specified, the default scheme specified in the configuration will be used. An HDFS file or directory such/Parent/childCan be expressedHDFS: // namenode: namenodeport/parent/child, Or simpler/Parent/child(Assume that the default value in your configuration file isNamenode: na
FS Shell
Cat
Chgrp
chmod
Chown
Copyfromlocal
Copytolocal
Cp
Du
Dus
Expunge
Get
Getmerge
Ls
Lsr
Mkdir
Movefromlocal
Mv
Put
Rm
RMr
Setrep
Stat
Tail
Test
Text
Touchz
FS ShellThe call file system (FS) shell command should use the form Bin/
Original address: http://hadoop.apache.org/docs/r1.0.4/cn/hdfs_shell.html
FS Shell
Cat
Chgrp
chmod
Chown
Copyfromlocal
Copytolocal
Cp
Du
Dus
Expunge
Get
Getmerge
Ls
Lsr
Mkdir
Movefromlocal
Mv
Put
Rm
RMr
Setrep
Stat
Tail
Test
Text
Touchz
FS ShellThe call file system (FS) she
The purpose of the cat command is to connect files or standard input and print. This command is often used to display the contents of a file, or to connect several files to a display, or to read content from standard input and display it, often in conjunction with a redirection symbol.
1. Command format:
FS ShellThe call file system (FS) shell command should use the form bin/hadoop FS . All of the FS shell commands use URI paths as parameters. The URI format is scheme://authority/path . For the HDFs file system, Scheme is HDFs , to the local file system, scheme is file. The scheme and authority parameters are optional, and if not specified, the default scheme specified in the configuration is used. An HDF
8.1 "Linux learning is not difficult" Linux Common Operations Command (1): Cat command display text file contentYou can use the Cat command to display the contents of a text file, or to attach several file contents to another file. If no file is specified, or if the file is
in the In a Linux system,the Cat command is a text output command that is typically used to view the contents of a document. It has the following three functions:1), display the entire file at onceFor example: To view The/etc/initab file, you can use the command:cat/etc/inittab2), create a file from the keyboardsuch as: command:cat >five.txt, and then enter some
Linux basic file operation command-display file content command (cat)-Linux general technology-Linux technology and application information, the following is a detailed description. In Linux, the command for displaying the file content (not editing) is cat, which not only di
root directory to the test folderAlso we can rename a file by moving a file in the same directory, for example, we have the name of the Test.txt Test.doc, only need to use MV Test.txt Test.docMove multiple files, you can enter more than one file name, compare we want to put the test folder below the two files Test.txt,test2.txt moved to the Test2 folder below, you can use the following command4. View files: Cat commandBasic usage:
FS ShellThe call file system (FS) shell command should use the form Bin/hadoop FS scheme://authority/path. For the HDFs file system, Scheme is HDFs, to the local file system, scheme is file. The scheme and authority parameters are optional, and if not specified, the default scheme specified in the configuration is used. An HDFs file or directory such as /parent/child can be represented as Hdfs://namenode:na
}/slaves file on jobtracker.8. On the assigned namenode, run the following command to stop HDFS:$ Bin/stop-dfs.shThe bin/stop-dfs.sh script stops the datanode daemon on all listed slave instances by referring to the content of the $ {hadoop_conf_dir}/slaves file on namenode.9. On the assigned jobtracker, run the following command to stop MAP/reduce:$ Bin/stop-mapred.shThe bin/stop-mapred.sh script stops the
Wang Jialin's in-depth case-driven practice of cloud computing distributed Big Data hadoop in July 6-7 in Shanghai
This section describes how to use the HDFS command line tool to operate hadoop distributed clusters:
Step 1: Use the hsfs command to store a large file in a
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.