Hadoop Basic Linux Commands

  • date 14th February, 2019 |
  • by Prwatech |
  • 5 Comments

 

Hadoop Basic Linux Commands

 
Welcome to the world of best Linux commands used in Hadoop, In This tutorial, one can easily learn a List of all Top Rated Hadoop basic Linux commands which are available and are used by most of the Hadoop developers. Are you also dreaming to become to certified Pro Developer, then stop just dreaming get your Hadoop certification course from India’s Leading Big Data Training institute.

 
So follow the below mentioned basic Linux commands for Hadoop from Prwatech and learn Hadoop Course like a pro from today itself under 15+ Years of Hands-on Experienced Professionals.

 
Hadoop linux commands

 

Basic Linux commands used in Hadoop

 

ls ⇒ directory listing

 
Hadoop linux commands

 

ls -al ⇒ formatted listing with hidden files

Hadoop linux commands

 

cd dir ⇒ change directory to dir

Hadoop linux commands

 

cd ⇒ change to home

Hadoop linux commands

 

pwd ⇒ shows current directory

Hadoop linux commands

 

mkdir dir ⇒ create a directory dir

Hadoop linux commands

 

rm file ⇒ delete the file

 
Hadoop linux commands

 

rm -r dir ⇒ delete directory dir

 
Hadoop linux commands

 

rm -f file ⇒ force remove the file

Hadoop linux commands

 

rm -rf dir ⇒ force remove directory dir *

Hadoop linux commands

 

cp file1 file2 ⇒ Copy file1 to file2

 
Hadoop linux commands

 

cp -r dir1 dir2 ⇒ copy dir1 to dir2; create dir2 if it is not present.

 
Hadoop linux commands

 

mv file1 file2 ⇒ rename or move file1 to file2 if file2 is an existing directory, moves file1 into

directory file2

Hadoop linux commands

 

ln -s file link ⇒ create a symbolic link to file

Hadoop linux commands

 

touch file ⇒ create or update file

 
Hadoop linux commands

 

cat > file ⇒ places standard input into the file

 
Hadoop linux commands

 

more file ⇒ output the contents of the file

 
Hadoop linux commands

 

head file ⇒ output the first 10 lines of the file

 
Hadoop linux commands

 

tail file ⇒ output the last 10 lines of the file

 
Hadoop linux commands

 

tail -f file ⇒ output the contents of the file as it

 
grows, starting with the last 10 lines

 
Hadoop linux commands

Permission Commands:

 

chmod ⇒ modify file access rights

hadoop linux commands

 

su ⇒ temporarily become the superuser

 
hadoop linux commands

 

sudo ⇒ temporarily become the superuser

 
hadoop linux commands

 

chowm ⇒ change file ownership

hadoop linux commands

 

chgrp ⇒ change a file’s group ownership

hadoop linux commands

System Info Commands :

 

date ⇒  shows the current date and time

 
hadoop linux commands

 

cal ⇒  show this month’s calendar

hadoop linux commands

 

uptime ⇒  show current uptime

hadoop linux commands

 

w ⇒  display who is online

hadoop linux commands

 

 whoami ⇒ who you are logged in as

hadoop linux commands

 
 

finger user ⇒  display information about user

 
hadoop linux commands

 

uname -a ⇒  show kernel information

hadoop linux commands

 

cat /proc/cpuinfo ⇒  cpu information

 
hadoop linux commands

 

cat /proc/meminfo ⇒  memory information

hadoop linux commands

 

man command ⇒  show the manual for command

hadoop linux commands

 

df ⇒  show disk usage

 
hadoop linux commands

 

du ⇒  show directory space usage

hadoop linux commands

 

free ⇒  show memory and swap usage

 
hadoop linux commands

 

whereis app ⇒  show possible locations of app

 
hadoop linux commands

 

which app ⇒  show which app will be run by default

 
hadoop linux commands

 

Process Management Commands:

 

ps ⇒ display your currently active processes

hadoop linux commands

 

top ⇒  display all running processes

hadoop linux commands

 

kill pid ⇒  kill process id pid

hadoop linux commands

 

killall proc ⇒  kill all processes named proc *

hadoop linux commands

 

bg ⇒  lists stopped or background jobs; resume a

 
stopped job in the background

 
hadoop linux commands

 

fg ⇒  brings the most recent job to foreground

 
hadoop linux commands

 

fg n ⇒  brings job n to the foreground

 
hadoop linux commands

 

SSH Commands

 

sshuse[email protected] ⇒ connect to host as the user

 
hadoop linux commands

 

ssh -p port [email protected] ⇒  connect to host on port
port as user

 
hadoop linux commands

 
ssh-copy-id [email protected] ⇒  add your key to host for
user to enable a keyed or passwordlesslogin

hadoop linux commands

 

Searching Commands

 

grep pattern files ⇒  search for pattern in files

 
hadoop linux commands

 

grep -r pattern dir ⇒  search recursively for
pattern in dir

 
hadoop linux commands

 
hadoop linux commands

 

command | grep pattern ⇒  search for pattern in the output of the command

 
hadoop linux commands

 

locate file ⇒  find all instances of file

 
hadoop linux commands

 

Network Commands

 

ping host ⇒  ping host and output results

 
hadoop linux commands

 

whois domain ⇒  get whoisinformation for domain

hadoop linux commands

 

dig domain ⇒  get DNS information for domain

 
hadoop linux commands

 

dig -x host ⇒  reverse lookup host

 
hadoop linux commands

 

wget file ⇒  download file

 
hadoop linux commands

 

wget -c file ⇒  continue a stopped download

 
hadoop linux commands

 

Installation Commands

 

Install from source:

 
hadoop linux commands

./configure
make
make install

hadoop linux commands

 

dpkg-i pkg.deb ⇒  install a package (Debian)

 
hadoop linux commands

 

Shortcuts Commands

 

♦ Ctrl+C ⇒  halts the current command
♦ Ctrl+Z ⇒  stops the current command, resume with
fgin the foreground or bgin the background
♦ Ctrl+D ⇒  log out of current session, similar to exit
♦ Ctrl+W ⇒  erases one word in the current line
♦ Ctrl+U ⇒  erases the whole line
♦ Ctrl+R ⇒  type to bring up a recent command
♦ !! ⇒  repeats the last command
♦ exit ⇒  log out of current session

 
Thanks for Reading us, if you are also the one who is keen to learn the technology like a pro from scratch to advanced level, the Ask your World-class Trainers of India’s Leading Hadoop Training institute now and get Benefits of Big Data Certification course from Prwatech.

 

5 thoughts on “Hadoop Basic Linux Commands”

  1. Dear Sir,

    Its very useful documents. Keep posting such technical notes..

    I hope in future you also provide such technical documents for us.

Leave a Reply

Your email address will not be published. Required fields are marked *

Quick Support

image image