Updated: 2018-02-11 19:24 EST

1 Unix/Linux Command List You Must Know (Weekly Cumulative)Indexup to index

This is a list of Unix/Linux command names used in this course and (eventually) the week number in which they were first introduced and described. A missing week number means the command hasn’t been formally introduced yet. This page is updated weekly as new commands are introduced.

Almost all these command names have manual pages. Command names that are built-in to the shell (e.g. cd, exit, pwd, history, etc.) are described somewhere in the man page for the bash shell and you can also use the BASH shell built-in help command to get information about built-in commands, e.g. help help and help pwd, etc.

This list only gives the names of the commands, not what the commands do or how to use them. As each command is introduced, you must keep your own notebook with these command names in it and a short description of what each command does; you will be required to learn and remember at least some of what each of these commands can do.

Solutions to assignments in this course use only these command names. If you want to use other command names, clear it with your instructor first.

WK  Topic covered (estimate -- subject to change)
--  ----------------------------------------------------------------------
01  How the course works; submitting to Blackboard; course information.
01  Remote Login to the Course Linux Server and simple commands
02  Recall terminal command line history using UpArrow DownArrow keys
02  Simple command line Output Redirection using >file.txt
02  File Transfer to/from the CLS
02  Terminal Control Characters: ^C ^L
02  Using Copy and Paste in PuTTY via mouse drag and right-click
02  More Terminal Control Characters: ^C ^L ^W ^U ^R
02  More Terminal Control Characters: ^D ^Z
02  RTFM Manual Pages
03  Absolute and Relative pathnames
03  Setting the BASH shell prompt:  PS1='[\u@\h \W]\$ '
03  Finding files and basic commands
03  GLOB characters: * ? [...], aliases
03  Text Editors: basic VIM, nano (use VIM instead)
04  I/O Redirection: stdin, stdout, stderr, < > | 2>&1, Pipes
05  Midterm Test #1 45 min - in the lecture class
--  February 19-23 2018 Study Break Week (Winter Break / Reading Week)
06  Midterm Test #1 analysis
06  Start-up files (.bashrc .bash_profile)
06  Shell local and environment variables, export, printenv
06  Search $PATH
07  Quoting
07  Linux File System
07  Inodes and hard links, ln
08  Disk Usage, du, quota
08  Symbolic links
08  Permissions: whoami, id, groups, chmod
09  Permissions: umask
09  Compression, archives, difference: gzip, tar, diff
09  Midterm Test #2 45 min - in the one-hour lecture class
10  Midterm Test #2 analysis
10  System logs, dmesg, syslog
10  Processes, Jobs, Background, Foreground, Kill, Signals
10  Scheduling with crontab, at
??  Introduction to Shell Scripts and positional parameters $0, $1, $#, $*, $@
??  Shell command Substitution using $(...)
??  Command exit status and $?
??  Debugging shell scripts with -v and -x
??  Shell control statements, the "test" helper command
??  Shell control statements
??  Shell control statements; shell script problems


WK  Command name first introduced (read the course notes)
--  ----------------------------------------------------------------------
    &     (shell built-in)
    &&    (shell built-in)
    ||    (shell built-in)
    $((   (shell built-in)
    $(...) and `...` (shell built-in)
    :     (shell built-in)
03  alias (shell built-in)
02  apropos  (same as man -k)
    at ( -c )
    atq
    atrm
    awk '{print $1}'  (also $2, $NF, etc.)
02  bash
    bg (shell built-in)
    bunzip2
    bzip2
    bzcat, bzless, bzfgrep, bzgrep, bzdiff, etc.
01  cal (9 1752)
    case (shell built-in)
01  cat
02  cd (shell built-in)
    chmod ( -R ugo[-+=]rwx octal_number )
03  clear  (see also ^L)
01  cmatrix -s
03  cp ( -a -r -p )
    crontab ( -l -e -r )
    cut
01  date
    df
    diff
    dmesg
    do (shell built-in)
    du
01  echo (shell built-in and external)
    elif (shell built-in)
    elinks ( -dump -no-numbering -no-references )
    else (shell built-in)
    esac (shell built-in)
01  exit (shell built-in)
    export (shell built-in)
    expr (shell built-in)
    false (shell built-in)
02  fg (shell built-ini: use after ^Z stops a process)
03  fgrep (same as grep -F) ( -i -v -w )
    fi (shell built-in)
01  figlet
02  file
03  find ( -name -user -inum -size -print -ls )
    for (shell built-in)
01  fortune
    from
    function (shell built-in)
03  grep (use fgrep instead until you learn regular expressions next term)
    groups
    gunzip
    gzip
03  head
03  help (shell built-in)
01  history (shell built-in)
    hostname
    id
    if (shell built-in)
    jobs (shell built-in)
    kill (shell built-in)
    killall
02  less (similar to "more"; used by "man")
    let (deprecated shell built-in)
    ln ( -s )
03  locate ( see slocate )
02  ls ( -l -i -a -d -L -t )
    mail ( -s )
02  man ( -k )
03  mkdir ( -p )
03  more (similar to "less")
03  mv
03  nano [*** USE VIM INSTEAD ***]
04  nl (same as "cat -n")
02  passwd
    printenv
    ps ( uaxww -efww )
    pstree
02  pwd (shell built-in and also external)
    quota -v
    read (shell built-in)
02  rm ( -r -f )
03  rmdir
    set (shell built-in)
    sh    (symlink to "/bin/dash" on Ubuntu CLS)
    shift (shell built-in)
    shopt (shell built-in)
01  sl
03  sleep (60)
03  slocate
04  sort ( -f -n -r )  (see the weekly notes)
03  sum
04  tail
    tar
    test (shell built-in and also external) also known as [
    then (shell built-in)
01  toilet ( --gay )
    top
03  touch
    tr
    true (shell built-in)
03  tree
    umask ( octal_number ) (shell built-in)
03  unalias  ( -a ) (shell built-in)
04  uniq ( -c )  (see the weekly notes and examples of pipes)
    unzip
01  users
03  vi / vim / vimtutor
02  wc ( -l -w -c )
    whereis
    which
    while (shell built-in)
01  who
    whoami
03  whois (see the weekly notes)
    zip
    zcat, zless, zfgrep, zgrep, zdiff, etc.

Keep a notebook with these command names in it and a short description of what each command does; you will be required to learn and remember at least some of what each of these commands can do.

Remember

Remember

Author: 
| Ian! D. Allen, BA, MMath  -  idallen@idallen.ca  -  Ottawa, Ontario, Canada
| Home Page: http://idallen.com/   Contact Improv: http://contactimprov.ca/
| College professor (Free/Libre GNU+Linux) at: http://teaching.idallen.com/
| Defend digital freedom:  http://eff.org/  and have fun:  http://fools.ca/

Plain Text - plain text version of this page in Pandoc Markdown format

Campaign for non-browser-specific HTML   Valid XHTML 1.0 Transitional   Valid CSS!   Creative Commons by nc sa 3.0   Hacker Ideals Emblem   Author Ian! D. Allen