==========================================================
echo $PATH
==========================================================
find
find /etc -iname 'Network'
find /etc -iname 'apache2' -type d
–type 參數值
b block (buffered) special==========================================================
c character (unbuffered) special
d directory ( 一般目錄 )
p named pipe (FIFO)
f regular file ( 一般檔案 )
l symbolic link
s socket
D door (Solaris)
vi
顯示行數 :set nu
恢復 u
==========================================================
改電腦名稱
vim /etc/hostname
==========================================================
crontab 定期執行
==========================================================
安裝SAMBA
sudo apt-get install samba4
hw@ubuntu:/etc/samba$ sudo vim smb.conf
[workspaces]
comment = workspaces
path = /home/hw/workspaces/
browseable = yes
read only = no
create mask = 774
valid users = hw
admin users = hw
hw@ubuntu:/etc/init.d$ samba restart
hw@ubuntu:/etc/samba$ sudo smbpasswd -a hw
New SMB password:
Retype new SMB password:
hw@ubuntu:/etc/samba$
==========================================================
沒有留言:
張貼留言