SlideShare ist ein Scribd-Unternehmen logo
1 von 6
LINUX COMANDS FOR
HADOOP
Prepared By PM VENKATESH BABU
UNIX FOLDER STRUCTURE
• Bin -> All the executable files are present in this folder
• Sys -> The folder where all the System files are located
• Log -> All the log files are present in this folder
• Temp -> Processing data is present in this folder
• Usr -> Application Installation is present in this folder
• Opt -> Application Installation is present in this folder
• Etc -> Client Configuration data is available in this folder
• Proc -> System calls details present in this folder
• Home -> Application installation details and user working directory info
• Lib -> System Library files are available in this folder
COMMONLY USED HADOOP COMMANDS
SL NO COMMAND DESCRIPTION
1 Pwd Present working directory
2 Ls Lists and displays all files in the current folder
3 Ls –ltr Lists and displays the files along with the details of permissions rw-r-1
4 Ls –a Lists and displays the hidden files such as .ssh files and .vim files
5 Mkdir To create a folder (eg) mkdir hadoop -> creates a folder called hadoop
6 Cd .. Takes the user to the root directory
7 Cd ~ Takes the user to the root/home directory
8 Cat > file name.txt Creates a file name and allows the user to insert/write content to the file
9 Ctrl+d or Ctrl+c Is used to save the text file and its contents saved
10 Cat filename.txt Used to view the contents of the text file created
COMMONLY USED HADOOP COMMANDS….Cont
SL NO COMMAND DESCRIPTION
11 Cp filename.txt This will copy the filename.txt file from one folder to another folder called Hadoop
with the same file name. This will retain the copy of the original file in the origin
folder.
Eg) Cp filename.txt /home/Ubuntu/Hadoop
12 Cp filename.txt Cp filename.txt /home/Ubuntu/Hadoop/newfilename.txt ( This will copy the
filename.txt file from one folder to another folder called Hadoop with the changed
name called newfilename.txt
13 Mv filename.txt This will move a file from one folder to another folder. Mv command is like ctrl+x
and paste, which will be like cut a file from one folder and paste it to the destination
folder
14 Rm filename.txt This will completely remove the file specified from the folder.
Eg) Rm filename.txt /home/Ubuntu/Hadoop/
15 Cp –r
-r does the Recursive action
Will copy one folder to another folder. Eg. Cp /home/Ubuntu/hadoop
home/Ubuntu/bigdata (will copy the entire folder called Hadoop along with the
contents to another folder called bigdata.
16 Rm -r Will delete the folder called Hadoop
Eg) rm –r /home/Ubuntu/bigdata/Hadoop
COMMONLY USED HADOOP COMMANDS….Cont
SL NO COMMAND DESCRIPTION
21 Ps -es This command will display all the processes currently running
22 Ps –ef |grep java This command is used to view if a specific process is running or not. Here we are
using the | ‘pipe’ operator to filter for a specific process. In this command we are
looking if the process ‘Java’ is running or not.
23 netstat This command is used to view the network statistics and port numbers
24 Netstat |grep
<portnumber>
This command is used to view the network statistics of a specific portnumber.
|grep is used for pattern searches. Used for logical searches
Eg . Netstat |grep 11868 ( will display the network stats of port number 1186 )
25 Tail <filename.txt> This command is used to find the last line in a large text file
26 Jps This command stands for Java Virtual machine status tool. This command gives the
status of the daemons which run Hadoop cluster
27 Start-all.sh Starts the Hadoop and its daemons.
Namenode
SecondaryNamenode
Datanode
JobTracker
COMMONLY USED HADOOP COMMANDS….Cont
SL NO COMMAND DESCRIPTION
31 Cat <filename> The cat command will display the contents of the filename given.
Eg. Cat sales_tran.csv will display the contents of the specified file.
32 cat<filename> | grep
<specific word to search >
The ‘Grep’ command will be used to search for a specific word in a file.
Eg. Cat myfile.txt | grep is (This will search for the word ‘is’ in the text file called
myfile and display all the sentences
33 Du <filename> The ‘du’ command will specify the size of the filename given.
Eg . Du myfile.txt The output will be something like “29 myfile.txt” This indicates
that the file size of myfile.txt is 29 bytes.

Weitere ähnliche Inhalte

Was ist angesagt?

Was ist angesagt? (16)

Unix commands in etl testing
Unix commands in etl testingUnix commands in etl testing
Unix commands in etl testing
 
Linux command line
Linux command lineLinux command line
Linux command line
 
Basic linux commands for bioinformatics
Basic linux commands for bioinformaticsBasic linux commands for bioinformatics
Basic linux commands for bioinformatics
 
Important Linux Commands
Important Linux CommandsImportant Linux Commands
Important Linux Commands
 
Linux commd
Linux commdLinux commd
Linux commd
 
Linux commd
Linux commdLinux commd
Linux commd
 
The Linux Command Cheat Sheet
The Linux Command Cheat SheetThe Linux Command Cheat Sheet
The Linux Command Cheat Sheet
 
Anandha ganesh linux1.ppt
Anandha ganesh linux1.pptAnandha ganesh linux1.ppt
Anandha ganesh linux1.ppt
 
Linux cheat sheet
Linux cheat sheetLinux cheat sheet
Linux cheat sheet
 
Linux Basic Commands
Linux Basic CommandsLinux Basic Commands
Linux Basic Commands
 
Linux basics
Linux basicsLinux basics
Linux basics
 
Linux commands
Linux commandsLinux commands
Linux commands
 
Basic command ppt
Basic command pptBasic command ppt
Basic command ppt
 
Termux commands-list
Termux commands-listTermux commands-list
Termux commands-list
 
Linux tech talk
Linux tech talkLinux tech talk
Linux tech talk
 
Unix commands
Unix commandsUnix commands
Unix commands
 

Ähnlich wie Linux comands for Hadoop (20)

50 Most Frequently Used UNIX Linux Commands -hmftj
50 Most Frequently Used UNIX  Linux Commands -hmftj50 Most Frequently Used UNIX  Linux Commands -hmftj
50 Most Frequently Used UNIX Linux Commands -hmftj
 
50 most frequently used unix
50 most frequently used unix50 most frequently used unix
50 most frequently used unix
 
50 most frequently used unix
50 most frequently used unix50 most frequently used unix
50 most frequently used unix
 
Linux Presentation
Linux PresentationLinux Presentation
Linux Presentation
 
Examples -partII
Examples -partIIExamples -partII
Examples -partII
 
Introduction to linux day-3
Introduction to linux day-3Introduction to linux day-3
Introduction to linux day-3
 
40 basic linux command
40 basic linux command40 basic linux command
40 basic linux command
 
101 4.1 create partitions and filesystems
101 4.1 create partitions and filesystems101 4.1 create partitions and filesystems
101 4.1 create partitions and filesystems
 
Linux presentation
Linux presentationLinux presentation
Linux presentation
 
Group13
Group13Group13
Group13
 
Directories description
Directories descriptionDirectories description
Directories description
 
Linux commands
Linux commandsLinux commands
Linux commands
 
Lamp ppt
Lamp pptLamp ppt
Lamp ppt
 
Linux
LinuxLinux
Linux
 
Linux week 2
Linux week 2Linux week 2
Linux week 2
 
Linux
LinuxLinux
Linux
 
Lamp ppt
Lamp pptLamp ppt
Lamp ppt
 
8.1.intro unix
8.1.intro unix8.1.intro unix
8.1.intro unix
 
Linux file commands and shell scripts
Linux file commands and shell scriptsLinux file commands and shell scripts
Linux file commands and shell scripts
 
Linux basic commands
Linux basic commandsLinux basic commands
Linux basic commands
 

Kürzlich hochgeladen

Heart Disease Classification Report: A Data Analysis Project
Heart Disease Classification Report: A Data Analysis ProjectHeart Disease Classification Report: A Data Analysis Project
Heart Disease Classification Report: A Data Analysis ProjectBoston Institute of Analytics
 
Predictive Analysis for Loan Default Presentation : Data Analysis Project PPT
Predictive Analysis for Loan Default  Presentation : Data Analysis Project PPTPredictive Analysis for Loan Default  Presentation : Data Analysis Project PPT
Predictive Analysis for Loan Default Presentation : Data Analysis Project PPTBoston Institute of Analytics
 
办理学位证中佛罗里达大学毕业证,UCF成绩单原版一比一
办理学位证中佛罗里达大学毕业证,UCF成绩单原版一比一办理学位证中佛罗里达大学毕业证,UCF成绩单原版一比一
办理学位证中佛罗里达大学毕业证,UCF成绩单原版一比一F sss
 
Easter Eggs From Star Wars and in cars 1 and 2
Easter Eggs From Star Wars and in cars 1 and 2Easter Eggs From Star Wars and in cars 1 and 2
Easter Eggs From Star Wars and in cars 1 and 217djon017
 
Semantic Shed - Squashing and Squeezing.pptx
Semantic Shed - Squashing and Squeezing.pptxSemantic Shed - Squashing and Squeezing.pptx
Semantic Shed - Squashing and Squeezing.pptxMike Bennett
 
办理学位证纽约大学毕业证(NYU毕业证书)原版一比一
办理学位证纽约大学毕业证(NYU毕业证书)原版一比一办理学位证纽约大学毕业证(NYU毕业证书)原版一比一
办理学位证纽约大学毕业证(NYU毕业证书)原版一比一fhwihughh
 
1:1定制(UQ毕业证)昆士兰大学毕业证成绩单修改留信学历认证原版一模一样
1:1定制(UQ毕业证)昆士兰大学毕业证成绩单修改留信学历认证原版一模一样1:1定制(UQ毕业证)昆士兰大学毕业证成绩单修改留信学历认证原版一模一样
1:1定制(UQ毕业证)昆士兰大学毕业证成绩单修改留信学历认证原版一模一样vhwb25kk
 
Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...
Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...
Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...Jack DiGiovanna
 
Advanced Machine Learning for Business Professionals
Advanced Machine Learning for Business ProfessionalsAdvanced Machine Learning for Business Professionals
Advanced Machine Learning for Business ProfessionalsVICTOR MAESTRE RAMIREZ
 
Indian Call Girls in Abu Dhabi O5286O24O8 Call Girls in Abu Dhabi By Independ...
Indian Call Girls in Abu Dhabi O5286O24O8 Call Girls in Abu Dhabi By Independ...Indian Call Girls in Abu Dhabi O5286O24O8 Call Girls in Abu Dhabi By Independ...
Indian Call Girls in Abu Dhabi O5286O24O8 Call Girls in Abu Dhabi By Independ...dajasot375
 
From idea to production in a day – Leveraging Azure ML and Streamlit to build...
From idea to production in a day – Leveraging Azure ML and Streamlit to build...From idea to production in a day – Leveraging Azure ML and Streamlit to build...
From idea to production in a day – Leveraging Azure ML and Streamlit to build...Florian Roscheck
 
9711147426✨Call In girls Gurgaon Sector 31. SCO 25 escort service
9711147426✨Call In girls Gurgaon Sector 31. SCO 25 escort service9711147426✨Call In girls Gurgaon Sector 31. SCO 25 escort service
9711147426✨Call In girls Gurgaon Sector 31. SCO 25 escort servicejennyeacort
 
Predicting Salary Using Data Science: A Comprehensive Analysis.pdf
Predicting Salary Using Data Science: A Comprehensive Analysis.pdfPredicting Salary Using Data Science: A Comprehensive Analysis.pdf
Predicting Salary Using Data Science: A Comprehensive Analysis.pdfBoston Institute of Analytics
 
How we prevented account sharing with MFA
How we prevented account sharing with MFAHow we prevented account sharing with MFA
How we prevented account sharing with MFAAndrei Kaleshka
 
RS 9000 Call In girls Dwarka Mor (DELHI)⇛9711147426🔝Delhi
RS 9000 Call In girls Dwarka Mor (DELHI)⇛9711147426🔝DelhiRS 9000 Call In girls Dwarka Mor (DELHI)⇛9711147426🔝Delhi
RS 9000 Call In girls Dwarka Mor (DELHI)⇛9711147426🔝Delhijennyeacort
 
20240419 - Measurecamp Amsterdam - SAM.pdf
20240419 - Measurecamp Amsterdam - SAM.pdf20240419 - Measurecamp Amsterdam - SAM.pdf
20240419 - Measurecamp Amsterdam - SAM.pdfHuman37
 
Data Factory in Microsoft Fabric (MsBIP #82)
Data Factory in Microsoft Fabric (MsBIP #82)Data Factory in Microsoft Fabric (MsBIP #82)
Data Factory in Microsoft Fabric (MsBIP #82)Cathrine Wilhelmsen
 
PKS-TGC-1084-630 - Stage 1 Proposal.pptx
PKS-TGC-1084-630 - Stage 1 Proposal.pptxPKS-TGC-1084-630 - Stage 1 Proposal.pptx
PKS-TGC-1084-630 - Stage 1 Proposal.pptxPramod Kumar Srivastava
 
专业一比一美国俄亥俄大学毕业证成绩单pdf电子版制作修改
专业一比一美国俄亥俄大学毕业证成绩单pdf电子版制作修改专业一比一美国俄亥俄大学毕业证成绩单pdf电子版制作修改
专业一比一美国俄亥俄大学毕业证成绩单pdf电子版制作修改yuu sss
 

Kürzlich hochgeladen (20)

Heart Disease Classification Report: A Data Analysis Project
Heart Disease Classification Report: A Data Analysis ProjectHeart Disease Classification Report: A Data Analysis Project
Heart Disease Classification Report: A Data Analysis Project
 
Predictive Analysis for Loan Default Presentation : Data Analysis Project PPT
Predictive Analysis for Loan Default  Presentation : Data Analysis Project PPTPredictive Analysis for Loan Default  Presentation : Data Analysis Project PPT
Predictive Analysis for Loan Default Presentation : Data Analysis Project PPT
 
办理学位证中佛罗里达大学毕业证,UCF成绩单原版一比一
办理学位证中佛罗里达大学毕业证,UCF成绩单原版一比一办理学位证中佛罗里达大学毕业证,UCF成绩单原版一比一
办理学位证中佛罗里达大学毕业证,UCF成绩单原版一比一
 
Easter Eggs From Star Wars and in cars 1 and 2
Easter Eggs From Star Wars and in cars 1 and 2Easter Eggs From Star Wars and in cars 1 and 2
Easter Eggs From Star Wars and in cars 1 and 2
 
Semantic Shed - Squashing and Squeezing.pptx
Semantic Shed - Squashing and Squeezing.pptxSemantic Shed - Squashing and Squeezing.pptx
Semantic Shed - Squashing and Squeezing.pptx
 
办理学位证纽约大学毕业证(NYU毕业证书)原版一比一
办理学位证纽约大学毕业证(NYU毕业证书)原版一比一办理学位证纽约大学毕业证(NYU毕业证书)原版一比一
办理学位证纽约大学毕业证(NYU毕业证书)原版一比一
 
1:1定制(UQ毕业证)昆士兰大学毕业证成绩单修改留信学历认证原版一模一样
1:1定制(UQ毕业证)昆士兰大学毕业证成绩单修改留信学历认证原版一模一样1:1定制(UQ毕业证)昆士兰大学毕业证成绩单修改留信学历认证原版一模一样
1:1定制(UQ毕业证)昆士兰大学毕业证成绩单修改留信学历认证原版一模一样
 
Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...
Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...
Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...
 
Advanced Machine Learning for Business Professionals
Advanced Machine Learning for Business ProfessionalsAdvanced Machine Learning for Business Professionals
Advanced Machine Learning for Business Professionals
 
Indian Call Girls in Abu Dhabi O5286O24O8 Call Girls in Abu Dhabi By Independ...
Indian Call Girls in Abu Dhabi O5286O24O8 Call Girls in Abu Dhabi By Independ...Indian Call Girls in Abu Dhabi O5286O24O8 Call Girls in Abu Dhabi By Independ...
Indian Call Girls in Abu Dhabi O5286O24O8 Call Girls in Abu Dhabi By Independ...
 
From idea to production in a day – Leveraging Azure ML and Streamlit to build...
From idea to production in a day – Leveraging Azure ML and Streamlit to build...From idea to production in a day – Leveraging Azure ML and Streamlit to build...
From idea to production in a day – Leveraging Azure ML and Streamlit to build...
 
9711147426✨Call In girls Gurgaon Sector 31. SCO 25 escort service
9711147426✨Call In girls Gurgaon Sector 31. SCO 25 escort service9711147426✨Call In girls Gurgaon Sector 31. SCO 25 escort service
9711147426✨Call In girls Gurgaon Sector 31. SCO 25 escort service
 
Predicting Salary Using Data Science: A Comprehensive Analysis.pdf
Predicting Salary Using Data Science: A Comprehensive Analysis.pdfPredicting Salary Using Data Science: A Comprehensive Analysis.pdf
Predicting Salary Using Data Science: A Comprehensive Analysis.pdf
 
How we prevented account sharing with MFA
How we prevented account sharing with MFAHow we prevented account sharing with MFA
How we prevented account sharing with MFA
 
RS 9000 Call In girls Dwarka Mor (DELHI)⇛9711147426🔝Delhi
RS 9000 Call In girls Dwarka Mor (DELHI)⇛9711147426🔝DelhiRS 9000 Call In girls Dwarka Mor (DELHI)⇛9711147426🔝Delhi
RS 9000 Call In girls Dwarka Mor (DELHI)⇛9711147426🔝Delhi
 
Deep Generative Learning for All - The Gen AI Hype (Spring 2024)
Deep Generative Learning for All - The Gen AI Hype (Spring 2024)Deep Generative Learning for All - The Gen AI Hype (Spring 2024)
Deep Generative Learning for All - The Gen AI Hype (Spring 2024)
 
20240419 - Measurecamp Amsterdam - SAM.pdf
20240419 - Measurecamp Amsterdam - SAM.pdf20240419 - Measurecamp Amsterdam - SAM.pdf
20240419 - Measurecamp Amsterdam - SAM.pdf
 
Data Factory in Microsoft Fabric (MsBIP #82)
Data Factory in Microsoft Fabric (MsBIP #82)Data Factory in Microsoft Fabric (MsBIP #82)
Data Factory in Microsoft Fabric (MsBIP #82)
 
PKS-TGC-1084-630 - Stage 1 Proposal.pptx
PKS-TGC-1084-630 - Stage 1 Proposal.pptxPKS-TGC-1084-630 - Stage 1 Proposal.pptx
PKS-TGC-1084-630 - Stage 1 Proposal.pptx
 
专业一比一美国俄亥俄大学毕业证成绩单pdf电子版制作修改
专业一比一美国俄亥俄大学毕业证成绩单pdf电子版制作修改专业一比一美国俄亥俄大学毕业证成绩单pdf电子版制作修改
专业一比一美国俄亥俄大学毕业证成绩单pdf电子版制作修改
 

Linux comands for Hadoop

  • 1. LINUX COMANDS FOR HADOOP Prepared By PM VENKATESH BABU
  • 2. UNIX FOLDER STRUCTURE • Bin -> All the executable files are present in this folder • Sys -> The folder where all the System files are located • Log -> All the log files are present in this folder • Temp -> Processing data is present in this folder • Usr -> Application Installation is present in this folder • Opt -> Application Installation is present in this folder • Etc -> Client Configuration data is available in this folder • Proc -> System calls details present in this folder • Home -> Application installation details and user working directory info • Lib -> System Library files are available in this folder
  • 3. COMMONLY USED HADOOP COMMANDS SL NO COMMAND DESCRIPTION 1 Pwd Present working directory 2 Ls Lists and displays all files in the current folder 3 Ls –ltr Lists and displays the files along with the details of permissions rw-r-1 4 Ls –a Lists and displays the hidden files such as .ssh files and .vim files 5 Mkdir To create a folder (eg) mkdir hadoop -> creates a folder called hadoop 6 Cd .. Takes the user to the root directory 7 Cd ~ Takes the user to the root/home directory 8 Cat > file name.txt Creates a file name and allows the user to insert/write content to the file 9 Ctrl+d or Ctrl+c Is used to save the text file and its contents saved 10 Cat filename.txt Used to view the contents of the text file created
  • 4. COMMONLY USED HADOOP COMMANDS….Cont SL NO COMMAND DESCRIPTION 11 Cp filename.txt This will copy the filename.txt file from one folder to another folder called Hadoop with the same file name. This will retain the copy of the original file in the origin folder. Eg) Cp filename.txt /home/Ubuntu/Hadoop 12 Cp filename.txt Cp filename.txt /home/Ubuntu/Hadoop/newfilename.txt ( This will copy the filename.txt file from one folder to another folder called Hadoop with the changed name called newfilename.txt 13 Mv filename.txt This will move a file from one folder to another folder. Mv command is like ctrl+x and paste, which will be like cut a file from one folder and paste it to the destination folder 14 Rm filename.txt This will completely remove the file specified from the folder. Eg) Rm filename.txt /home/Ubuntu/Hadoop/ 15 Cp –r -r does the Recursive action Will copy one folder to another folder. Eg. Cp /home/Ubuntu/hadoop home/Ubuntu/bigdata (will copy the entire folder called Hadoop along with the contents to another folder called bigdata. 16 Rm -r Will delete the folder called Hadoop Eg) rm –r /home/Ubuntu/bigdata/Hadoop
  • 5. COMMONLY USED HADOOP COMMANDS….Cont SL NO COMMAND DESCRIPTION 21 Ps -es This command will display all the processes currently running 22 Ps –ef |grep java This command is used to view if a specific process is running or not. Here we are using the | ‘pipe’ operator to filter for a specific process. In this command we are looking if the process ‘Java’ is running or not. 23 netstat This command is used to view the network statistics and port numbers 24 Netstat |grep <portnumber> This command is used to view the network statistics of a specific portnumber. |grep is used for pattern searches. Used for logical searches Eg . Netstat |grep 11868 ( will display the network stats of port number 1186 ) 25 Tail <filename.txt> This command is used to find the last line in a large text file 26 Jps This command stands for Java Virtual machine status tool. This command gives the status of the daemons which run Hadoop cluster 27 Start-all.sh Starts the Hadoop and its daemons. Namenode SecondaryNamenode Datanode JobTracker
  • 6. COMMONLY USED HADOOP COMMANDS….Cont SL NO COMMAND DESCRIPTION 31 Cat <filename> The cat command will display the contents of the filename given. Eg. Cat sales_tran.csv will display the contents of the specified file. 32 cat<filename> | grep <specific word to search > The ‘Grep’ command will be used to search for a specific word in a file. Eg. Cat myfile.txt | grep is (This will search for the word ‘is’ in the text file called myfile and display all the sentences 33 Du <filename> The ‘du’ command will specify the size of the filename given. Eg . Du myfile.txt The output will be something like “29 myfile.txt” This indicates that the file size of myfile.txt is 29 bytes.