UNIX Commands AddOns (Version 010999) ##################################### Connect: -------- write [username] Write directly to username, you must be on the same machine mesg -yes / -no Enable or disable receiving of messages slirp Slirp (conf: .slirprc) (options: -P -b 9600 "asyncmap FFFFFFFF" "mtu 1500" "mru 1500" compress ppp-exit debug papcrypt (save encrypted passwd in file ~/.pap-secrets)) pppd PPP (use chat -v to connect) (options: 9600 locIP:remIP asyncmap FFFFFFFF crtscts mru 1500) aspppd To automatically build a ppp-connection if needed httpd HTTP-Server (confiles: httpd.conf, srm.conf, access.conf) Connect info: ------------- whois [-h host name] Scans for a name or handle id List user & group ids last -n [num] List the num last users who have logged in Network: -------- route Routing (add host/net target gateway 0) netstat -nr Routing table ifconfig [device] Show the stats of network device, or all devices: -a ifconfig lo0:1 10.0.2.20 127.0.0.1 up Enables a previously added route (very important!!!) Put this at the end of the file: /etc/init.d/sysid.net traceroute [hostname] Tracing IP packet from this host to hostname Jobs: ----- nohup comm & Continue execution of command even when terminal is down New commandline Directories: ------------ ln -s [realpath alias] Symbolic link for path df -k Display disk usage df -i Display inode usage disktool -u [dir] Display disk usage o directory fsck Disk repair Files: ------ tar -cf- [source] | (cd [target]; tar -xvp-) Fast copying using tar (p: keep permissions, v: verbose) chown [user:group file] Change owner of file (find / -name xxx > result) >& /dev/null Only important stuff is saved in the result file xhfs Use Mac disks (HFS file system) hfs Use Mac disks (mount /vol/dev/aliases/floppy0, copyin, copyout, dir) Printing: --------- nenscript [-p- file] Translate file to Postscript (stdout) nenscript [-p- file] | lpr Translate file to PS and print it psp1 [file] / psp2 [file] Print text (user defined script) genscript --landscape --pretty-print=cpp --columns=2 --fancy-header file.C Special: -------- stty erase \^\? Set erase key to backspace (or other terminal settings) h Display history (on cccsrv only) echo [$var] Print value of var or expr {HOME, PATH, SHELL, USER, PRINTER, DISPLAY} setenv [var val] Set var to val {HOME, PATH, SHELL, USER, PRINTER, DISPLAY} xsetroot -solid blue Set background xinit Initialize X-Server (use strtx to start X-Server) rup [hostname] Status of host boot sd(0,6,2) Boot from CD-ROM (check with probe-scsi first) halt / fasthalt Shut down (root only) su root -c "halt&;exit" Halt over a telnet or terminal connection su Become super user (or any other user) starting NFS /usr/lib/nfs start all apps there Important directories and files: -------------------------------- ~/.fvmrc Window mangager configuration (FVWM) ~/.dtwmrc Window mangager configuration (DTWM) ~/.dt/* (errorlog, startlog, icons, types (setting of launch pad), other DTWM resources) ~/.tcshrc TC-Shell settings ~/.cshrc C-Shell settings ~/.login Login script (for desktop login only, executed once) ~/.rhosts Remote hosts file ~/.httpusers Alowed users for secret pages ~/.pap-secrets PAP secrets for slirp ~/.slirprc ~/.ppprc Slirp and ppp config files ~/public_html Home Page directory /usr/bin Applications /usr/local/bin More applications /opt/gnu/bin Gnu stuff like g++, gcc, gzip and more /usr/sbin System tools /usr/share/man Manual files /dev Devices like ttya (serial port), audio and disk drives /vol Automounted volumes /etc (rc2 (things to do at startup), rc2.d (startup e.g. S72inetsvc (routing) passwd, shadow (passwords), resolve.conf (DNS IP addresses), hosts, ftpusers (users who can't access ftp), shells (users and their shell important for ftp), services (port numer and its service), nsswitch.conf (in colum hosts we have to write dns to use dns resolving), ppp/ (pap-secrets and other ppp settings), nodename, hostname.[interfacename] (hostname associated with this interface e.g. le0), fstab (mounting table), ssh_* (ssh stuff) ) /usr/var/log Home Page Log on SUN /usr/local/WWW/logs Home Page Log on OSF1 /var/adm messages (Messages from applications and startup process (for debugging purposes), sulog) /var/spool/mail Mail (on SUN: /var/mail) /usr/local/WWW WWW-directory (e.g. settings and CGI) /usr/local/etc/httpd WWW-directory on gummibaum /usr/dt/config/C/* Default desktop settings (Xresources (Configuration file for the Login Manager), sys.dtwmrc (default windowmangager configuration), and others) /soft/public/X11/lib/fvwm/system.fvwmrc System fvwmrc file /etc/issue.net Welcome message (before login in) Alias': ------- alias ls ls -l List in long format alias cp cp -ir Copy files and directories and ask if file already exists alias mv mv -i Ask if file already exists alias df df -bk Display free space and used space in bytes alias ps ps -aef | grep $USER List all jobs of user alias cls clear Clear screen alias ftp ftp -i Don't ask when using mget Alta-Vista: ----------- Standard: <+> = AND = OR Advanced: AND OR NEAR URL () * (e.g: apple* AND ((quicktime OR video) NEAR 3.0) ) Netscape: --------- about:image-cache about:memory-cache about:cache ftp://name:password@domain The following stuff is for users inside the ethz.ch domain only!!! ================================================================== VPP: ---- vpp -des=[] -dev=[] -fo=[] file Send PS file to VPP station (-cop=[copies] ) des: RZ, RZSPEZ, FAX, RZG, HGG26, MLE43, HPMF ETZD96, ETZSPEZ, ETLH, HILC36, HILSPEZ fo: A4, A4H, A4Q, A3, A4.WHITE.DUPLEX (for 5si) des: etzj num@fax chnm25 rzspez rzspez ils dev: hp5si pts color hp755 hp650c ils-lasercolor was: hp5si FAX PS600 A0-PLOT POSTER PS600 Switch-Services: ---------------- Gateways: Dokumentation siehe: http://www.switch.ch/switch/mail/ SMS number@sms.switch.ch Pager number@pager.switch.ch Fax number@fax.switch.ch Phonebook --------- http://www.switch.ch/switch/info/etv.html telnet://etv@etv.switch.ch/ http://switch111.switch.ch/111/ Whois ----- http://www.switch.ch/switch/info/whois.html By Boris Lutz