Skip to main content

Posts

Showing posts with the label line

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