Some OS X’s BSD/unix command-line

  • Basic Navigation (cd, pwd, ls)
  • Manipulating Files & folders (cp, rcp, ditto, mv, rm, rmdir, mkdir, chmod, chflags,chown, chgrp)
  • Working with text files (more, less, grep, pico, vi, emacs)
  • Pipes and Redirects (>, >>, <, |, tee)
  • Miscellaneous (man, find, locate, open, apropos)
  • Administration (ps, top, kill, su, sudo, lsbom, lsof, ifconfig, diskutil, netstat)
  • Single-user mode (fsck, mount, SystemStarter, pico, nicl, bless, exit, reboot, shutdown)

Control Characters:

  • Ctrl-C –> Terminates the command currently running
  • Ctrl-D –> Indicates end-of-file or exit
  • Ctrl-U –> Erases all characters on the current command line
  • Ctrl-W –> Erase the last word on the command line
  • Ctrl-S –> Stops output to the screen
  • Ctrl-Q –> restarts output to the screen after you have pressed Ctrl-S.

Other commands not metioned above but I used before:
quot, useradd, passwd NEWUSER1, smuser add, usermod, userdel, smuser delete, groupadd, group mod, groupdel, file, more, cat, head, tail, wc, lp, lpstat, cancel, touch, find, history, cal, sleep, rlogin, uname, telnet, ftp, get, mget, mput, bin, bye, tar, jar, gzip, gzcat, zip, unzip, who, rusers, finger, last, whoami, groups, id, prstat.

Advertisements