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.
Basic Linux commands used in Hadoop
ls ⇒ directory listingls -al ⇒ formatted listing with hidden filescd dir ⇒ change directory to dircd ⇒ change to homepwd ⇒ shows current directorymkdir dir ⇒ create a directory dirrm file ⇒ delete the filerm -r dir ⇒ delete directory dirrm -f file ⇒ force remove the filerm -rf dir ⇒ force remove directory dir *cp file1 file2 ⇒ Copy file1 to file2cp -r dir1 dir2 ⇒ copy dir1 to dir2; create dir2 if it is not present.mv file1 file2 ⇒ rename or move file1 to file2 if file2 is an existing directory, moves file1 into directory file2ln -s file link ⇒ create a symbolic link to filetouch file ⇒ create or update filecat > file ⇒ places standard input into the filemore file ⇒ output the contents of the filehead file ⇒ output the first 10 lines of the filetail file ⇒ output the last 10 lines of the filetail -f file ⇒ output the contents of the file as itgrows, starting with the last 10 lines
chmod ⇒ modify file access rightssu ⇒ temporarily become the superusersudo ⇒ temporarily become the superuserchowm ⇒ change file ownershipchgrp ⇒ change a file's group ownership
System Info Commands :
date ⇒ shows the current date and timecal ⇒ show this month's calendaruptime ⇒ show current uptimew ⇒ display who is online whoami ⇒ who you are logged in asfinger user ⇒ display information about useruname -a ⇒ show kernel informationcat /proc/cpuinfo ⇒ cpu informationcat /proc/meminfo ⇒ memory informationman command ⇒ show the manual for commanddf ⇒ show disk usagedu ⇒ show directory space usagefree ⇒ show memory and swap usagewhereis app ⇒ show possible locations of appwhich app ⇒ show which app will be run by default
Process Management Commands:
ps ⇒ display your currently active processestop ⇒ display all running processeskill pid ⇒ kill process id pidkillall proc ⇒ kill all processes named proc *bg ⇒ lists stopped or background jobs; resume astopped job in the backgroundfg ⇒ brings the most recent job to foregroundfg n ⇒ brings job n to the foreground
grep pattern files ⇒ search for pattern in filesgrep -r pattern dir ⇒ search recursively forpattern in dircommand | grep pattern ⇒ search for pattern in the output of the commandlocate file ⇒ find all instances of file
ping host ⇒ ping host and output resultswhois domain ⇒ get whoisinformation for domaindig domain ⇒ get DNS information for domaindig -x host ⇒ reverse lookup hostwget file ⇒ download filewget -c file ⇒ continue a stopped download
Install from source:
dpkg-i pkg.deb ⇒ install a package (Debian)
♦ 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.