目前分類:ubuntu (41)

瀏覽方式: 標題列表 簡短摘要

以 tab 為分隔符 

sort -t '$\t' -k 1 

Allen 發表在 痞客邦 留言(0) 人氣()

更改.bashrc 

完成後,執行source .bashrc

Allen 發表在 痞客邦 留言(0) 人氣()

use command : mktemp 

this command can create a temp file for you ,then delete after the program end.

Allen 發表在 痞客邦 留言(0) 人氣()

1.

apt-get install wine

Allen 發表在 痞客邦 留言(0) 人氣()

https://github.com/yangyangwithgnu/use_vim_as_ide/blob/master/README.md#0.1


Allen 發表在 痞客邦 留言(0) 人氣()

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


Allen 發表在 痞客邦 留言(0) 人氣()

安裝openssh-server
如果你沒有安裝ubuntu時沒有安裝openssh,請用以下熟悉的指令來做安裝

sudo apt-get install openssh-server


Allen 發表在 痞客邦 留言(0) 人氣()

cp -ap /來源目錄 /目的路徑 是不錯, 但複製大檔時,常不知進度到那了?

所以用rsync 可以看進度, 更好的是如有更新, 還可以只複製更新的部份~

Allen 發表在 痞客邦 留言(0) 人氣()

在/etc/vim/vimrc中增加如下一句:

highlight Comment ctermfg=green guifg=green

Allen 發表在 痞客邦 留言(0) 人氣()

edit  /etc/environment

add  "A PATH" at end of original PATH.

Allen 發表在 痞客邦 留言(0) 人氣()

command :  vimtutor

#this is a lesson for vim learning.

Allen 發表在 痞客邦 留言(0) 人氣()

  • Jul 16 Wed 2014 04:00
  • nfs4

http://www.gtwang.org/2012/02/nfsv4.html


Allen 發表在 痞客邦 留言(0) 人氣()

取代cp

rsync -av ( a 保留原始權限...之類的)(v 顯示進度,內容)

Allen 發表在 痞客邦 留言(0) 人氣()

write

dd if=/dev/zero of=1.img bs=1M count=1024

Allen 發表在 痞客邦 留言(0) 人氣()

du -h --max-depth=1


Allen 發表在 痞客邦 留言(0) 人氣()

  • Mar 05 Wed 2014 01:43
  • NFS

安裝

Allen 發表在 痞客邦 留言(0) 人氣()

vi /etc/network/interfaces

Allen 發表在 痞客邦 留言(0) 人氣()

:%s/time/Time/g

%代表全文

Allen 發表在 痞客邦 留言(0) 人氣()

  1. echo $PATH   所顯示的這個user登入所默認的shell type , user shell type 寫明在/etc/passwd.
  2. 但在使用linux當中 , 有時 我們會切換不同的shell來使用 ex: bash -> csh.
  3. 所以在切換過後,如果想要確認shell type 可用以下方式check
    1. echo $$   會顯示shell(使用中的) job id   這禮預設為"number" 
    2. ps aux |more|grep number 即可查看目前使用哪種shell

Allen 發表在 痞客邦 留言(0) 人氣()

ubuntu 裡 sudo 是暫時切換到root身份

ex 原本user為allen , allen的passwd為 123

Allen 發表在 痞客邦 留言(0) 人氣()

1 23