Windows終端好難用?試試gitbash吧!

木子昭發表於2018-05-27

說起來有些滑稽, “如何在Windows終端使用Linux命令”是一個長盛不衰的問題, 在試過一些`Windows版的Linux命令列工具後”, 我最終選擇了git bash

gitbash下載安裝

https://gitforwindows.org/

下載完成後, 在桌面找到下面這個圖示,雙擊執行即可

可完美使用git

自帶編輯器之神 vim

自帶遠端安全連線 ssh

ssh並不完美,中文會有亂碼現象, 但生產環境的伺服器, 中文也不多, 臨時用一下是可以的…

自帶壓縮解壓命令 tar

自帶sha系列演算法

實現了大多數的Linux命令

arch.exe*
awk.exe*
b2sum.exe*
base32.exe*
base64.exe*
basename.exe*
bash.exe*
bunzip2.exe*
bzcat.exe*
bzip2.exe*
bzip2recover.exe*
captoinfo.exe*
cat.exe*
chcon.exe*
chgrp.exe*
chmod.exe*
chown.exe*
chroot.exe*
cksum.exe*
clear.exe*
cmp.exe*
column.exe*
comm.exe*
cp.exe*
csplit.exe*
cut.exe*
cygcheck.exe*
cygpath.exe*
cygwin-console-helper.exe*
d2u.exe*
dash.exe*
date.exe*
dd.exe*
df.exe*
diff.exe*
diff3.exe*
dir.exe*
dircolors.exe*
dirname.exe*
dos2unix.exe*
du.exe*
dumpsexp.exe*
echo.exe*
env.exe*
envsubst.exe*
ex.exe*
expand.exe*
expr.exe*
factor.exe*
false.exe*
file.exe*
find.exe*
fmt.exe*
fold.exe*
funzip.exe*
gapplication.exe*
gawk.exe*
gawk-4.2.1.exe*
gdbus.exe*
gencat.exe*
getconf.exe*
getfacl.exe*
getopt.exe*
gettext.exe*
gio-querymodules.exe*
gkill.exe*
glib-compile-schemas.exe*
gobject-query.exe*
gpg.exe*
gpg-error.exe*
gpgsplit.exe*
gpgv.exe*
grep.exe*
groups.exe*
gsettings.exe*
gzexe*
gzip.exe*
head.exe*
hmac256.exe*
hostid.exe*
hostname.exe*
iconv.exe*
id.exe*
infocmp.exe*
infotocap.exe*
install.exe*
join.exe*
kill.exe*
ldd.exe*
ldh.exe*
less.exe*
lessecho.exe*
lesskey.exe*
link.exe*
ln.exe*
locale.exe*
locate.exe*
logname.exe*
ls.exe*
mac2unix.exe*
md5sum.exe*
minidumper.exe*
mintty.exe*
mkdir.exe*
mkfifo.exe*
mkgroup.exe*
mknod.exe*
mkpasswd.exe*
mktemp.exe*
mount.exe*
mpicalc.exe*
msgattrib.exe*
msgcat.exe*
msgcmp.exe*
msgcomm.exe*
msgconv.exe*
msgen.exe*
msgexec.exe*
msgfilter.exe*
msgfmt.exe*
msggrep.exe*
msginit.exe*
msgmerge.exe*
msgunfmt.exe*
msguniq.exe*
mv.exe*
nano.exe*
ngettext.exe*
nice.exe*
nl.exe*
nohup.exe*
nproc.exe*
numfmt.exe*
od.exe*
openssl.exe*
p11-kit.exe*
passwd.exe*
paste.exe*
patch.exe*
pathchk.exe*
perl.exe*
perl5.26.1.exe*
pinky.exe*
pldd.exe*
pluginviewer.exe*
pr.exe*
printenv.exe*
printf.exe*
ps.exe*
psl.exe*
ptx.exe*
pwd.exe*
readlink.exe*
realpath.exe*
rebase.exe*
recode-sr-latin.exe*
regtool.exe*
reset.exe*
rm.exe*
rmdir.exe*
rnano.exe*
runcon.exe*
rview.exe*
rvim.exe*
sasldblistusers2.exe*
saslpasswd2.exe*
scp.exe*
sdiff.exe*
sed.exe*
seq.exe*
setfacl.exe*
setmetamode.exe*
sftp.exe*
sh.exe*
sha1sum.exe*
sha224sum.exe*
sha256sum.exe*
sha384sum.exe*
sha512sum.exe*
shred.exe*
shuf.exe*
sleep.exe*
sort.exe*
split.exe*
ssh.exe*
ssh-add.exe*
ssh-agent.exe*
sshd.exe*
ssh-keygen.exe*
ssh-keyscan.exe*
ssh-pageant.exe*
ssp.exe*
stat.exe*
stdbuf.exe*
strace.exe*
stty.exe*
sum.exe*
sync.exe*
tabs.exe*
tac.exe*
tail.exe*
tar.exe*
tee.exe*
test.exe*
tic.exe*
tig.exe*
timeout.exe*
toe.exe*
touch.exe*
tput.exe*
tr.exe*
true.exe*
truncate.exe*
trust.exe*
tset.exe*
tsort.exe*
tty.exe*
tzset.exe*
u2d.exe*
umount.exe*
uname.exe*
unexpand.exe*
uniq.exe*
unix2dos.exe*
unix2mac.exe*
unlink.exe*
unzip.exe*
unzipsfx.exe*
users.exe*
vdir.exe*
view.exe*
vim.exe*
vimdiff.exe*
wc.exe*
which.exe*
who.exe*
whoami.exe*
winpty.exe*
winpty-agent.exe*
winpty-debugserver.exe*
xargs.exe*
xgettext.exe*
xsltproc.exe*
xxd.exe*
yes.exe*
zipinfo.exe*

git bash整體來講是不錯的, 但與Linux原生的終端相比, 還是有一定差距, 灌一口毒奶, 有一哥們, 同為計算機專業, 在Mac OS和Windows之間掙扎了三年半, 最後老老實實換了Mac(Steam基本拜拜了…), Windows玩遊戲還是不錯的, 搞程式設計開發, 建議還是Linux或者Mac


相關文章