2007-May-8 - Common Linux applications - vim, samba, iptables, squid
1. vim / vi -- text file editing * To open vim: run the following command: vim {file_name} If the file with {file_name} does not exist, it will create a new file with the name. * To enter edit mode: press Insert or I * To switch Insert / Replace: in edit mode press Insert * To input long command (eg. wq): in command mode press : * To exit edit mode or to input short command (eg. q): press Esc * To delete a character: in command mode press X or Delete * To scroll to the top of the file: in command mode press GG * To scroll to the end of the file: in command mode press Shift+G * To go down one page: in command mode press Ctrl+F * To go up one page: in command mode press Ctrl+B * To save & quit: :wq * To quit without save: :q! * To search a string: /{string} * To find next: n
2. samba -- share folders Quick started guide: 1) Open /etc/samba/smb.conf to do related configuration of the shared folder. Refer to the examples in the file. 2) Search "security=", and change its value to "share" (ie. security = share). 3) Save and close the file. 4) Add current user, run command: smbpasswd -a 5) Run: /etc/init.d/smb start Done. 3. iptables -- linux firewall, packet filter http://www.netfilter.org/documentation/index.html#documentation-howto 4. squid -- linux proxy http://www.squid-cache.org/
|