目前分類:ubuntu (41)
- Jun 24 Wed 2015 02:13
sort 分隔符
- Jun 22 Mon 2015 04:11
shell script create temp file
use command : mktemp
this command can create a temp file for you ,then delete after the program end.
- Jun 05 Fri 2015 16:32
ubuntu 安裝 sourceInSight
- Jun 03 Wed 2015 23:51
打造vim for c/c++
https://github.com/yangyangwithgnu/use_vim_as_ide/blob/master/README.md#0.1
- Jun 03 Wed 2015 23:48
ubuntu mount samba server
smbmount //IP/分享資源 /掛載點 [-o options]
參數:
-o 後面接的參數 (options) 常用的有底下這些:
username=你的登入帳號:例如 username=dmtsai
password=你的登入密碼:需要與上面 username 相對應啊!
iocharset=本機的語系編碼方式,如 big5 或 utf8 等等;
codepage=遠端主機的語系編碼方式,例如繁體中文為cp950
範例:以 dmtsai 的身份將其家目錄掛載至 /mnt/samba 中
[root@linux ~]# smbmount //127.0.0.1/dmtsai /mnt/samba -o username=dmtsai,password=pw_test,codepage=cp950
mount -t smbfs //127.0.0.1/dmtsai /mnt/samba -o username=dmtsai,password=pw_test,codepage=cp950,iocharset=big5
- Mar 03 Tue 2015 01:11
openssh
安裝openssh-server
如果你沒有安裝ubuntu時沒有安裝openssh,請用以下熟悉的指令來做安裝
sudo apt-get install openssh-server
- Nov 14 Fri 2014 00:26
use rsync command ,instead cp
- Nov 13 Thu 2014 16:23
change color for VIM
- Oct 23 Thu 2014 21:39
set instructin PATH (add some direction)
- Oct 23 Thu 2014 13:26
vim exercise
- Jul 16 Wed 2014 04:00
nfs4
http://www.gtwang.org/2012/02/nfsv4.html
- Jul 16 Wed 2014 03:58
cp & rsync
- May 30 Fri 2014 02:09
test nfs 速度
- May 28 Wed 2014 20:06
查看file & folder size
du -h --max-depth=1
- Feb 26 Wed 2014 02:47
ubuntu static ip set
vi /etc/network/interfaces
- Jan 23 Thu 2014 20:25
如何查看當下的shell 哪一種版本?
- echo $PATH 所顯示的這個user登入所默認的shell type , user shell type 寫明在/etc/passwd.
- 但在使用linux當中 , 有時 我們會切換不同的shell來使用 ex: bash -> csh.
- 所以在切換過後,如果想要確認shell type 可用以下方式check
- echo $$ 會顯示shell(使用中的) job id 這禮預設為"number"
- ps aux |more|grep number 即可查看目前使用哪種shell