Skip to main content

Posts

Showing posts with the label command

Basic linux command begginer

Hi fellas,Today we will talk about basic command ..whoever want to learn Linux he/she must be master with basic or daily route en commands.I seen many peoples who do symlink or bypass passwd file etc.. but they do not even know how to set a permisson on file or how to rename a file in linux..well.. i will discuss few command which is usefull for begginers.Lets start.. CP command Well maybe you knows it already that cp command use for copy file or folder one place to another. Syntax:  cp option source  destination cp  filename   /tmp/filename    # it will copy a file to /tmp/   directory cp -r directory   /tmp/directory   # it will copy a directory with all the file content in it to /tmp/ cp -v  filename  /tmp/filename   # it will show you copy information on terminal while copying (v=verbose) cp -f filename /tmp/filename  # forcefully copy (f=forcefully) Now suppose you have an old file called AR.txt ...

Basic Hadoop Command Lines and Simple mapper and reducer programs

Upload a file to Hadoop DFS To upload a file (e.g. purchases.txt) to the hadoop DFS, use the following command: $hadoop fs -put purchases.txt myinput This will upload the file "purchases.txt" to Hadoop DFS within the directory named "myinput" List files in Hadoop DFS To list files in Hadoop DFS, use the following command: $hadoop fs -ls This will list the files in Hadoop DFS To list files in "myinput", use the following command: $hadoop fs -ls myinput Process file in Hadoop DFS using mapper and reducer programs To process data in files uploaded to Hadoop DFS via mapper and reducer programs, use the following commad: $hadoop jar [hadoop.jar location_path] -mapper mapper.py -reducer reducer.py -file mapper.py -file reducer.py -input myinput -output joboutput Where [hadoop.jar location_path] is the path to the hadoop jar file; mapper.py is the mapper python program, and reducer.py is the reducer python program, "myinput" is the input to mapper.py, a...

bash route command not found Solution

Problem : bash: arp: command not found bash: route: command not found Solution : Try 1. use /sbin/route 2.� else su - 3. put you in roots environment which includes its path

Beberapa Tool Command Line Linux yang Wajib Berada di Windows

Selama ini mungkin terlalu sering dan di mudahkanya saya mengunakan beberapa tool command line yang ada di linux/nix. Sebagai contoh wget, nc, nmap dan masih banyak lagi. Kemudian jika saya mengunakan windows apakah tool tool itu dapat saya jalankan? Inilah beberapa tools terminal linux/nix yang bisa di install di windows. 1. wget wget for windows dapat di temukan di sini 2. netcat netcat berjalan baik di windows tinggal copy file nc.exe ke windows/system32. netcat for windows dapat di temukan di sini 3. perl perl for windows biasa di sebut activeperl. activeperl for windows dapat di temukan di sini 4. python python for windows bisa di temukan di sini 5. php-cli untuk php cli saya mengunakan appserv yaitu apache+mysql+php5 yang juga sudah terdapat php-cli juga. untuk appserv dapat ditemukan di sini Itulah beberapa tool command line linux yg ada di dalam windows saya. Namun ada baiknya kita menginstal tool bernama Cygwin . Apa itu Cygwin, disini saya coba copas dari site Cygwin. Cygwin ...

bash Colourful side by side command line diff

I have never liked default linux diff command. The more changes you make, the less informative it becomes. When you work with git it would be nice to have side-by-side comparison of original file and a new file with changes. Graphical tools like smartgit and meld do it really impressive. But sometimes it is more comfortable to use command line tools. For colourful side-by-side git diff you can use cdiff. The simpliest way to install it is with pip package manager: pip install cdiff Then in your repository run: cdiff -s And the result is gorgeous! The next tool is called icdiff. It does basicly the same, but with files. Install it with that command: curl -s https://raw.githubusercontent.com/jeffkaufman/icdiff/release-1.2.0/icdiff | sudo tee /usr/local/bin/icdiff > /dev/null && sudo chmod ugo+rx /usr/local/bin/icdiff Use it like this: icdiff file1 file2