Linux Command Line Interface

Linux Command Line Interface

  1. The Linux Command Line Interface
    Command prompt # $ %
    Cryptic commands
    Case sensitive
    / Path separator

  2. Logon to cis2.oc.ctc.edu with Telnet
    SSH Client
    Server (cis2)
    Connect to your home directory ~
    User account

  3. The Bash Shell
    Popular GNU Linux shell
    Auto-complete with tab key

  4. Online Help / Switches And Conventions
    Online help cmd --help
    Switches -x --xxx
    Options [x]
    man cmd (Q to exit, Ctrl+Z to kill)

  5. clear Command
    clear
    DOS: CLS

  6. pwd "Print Working Directory" Command
    pwd command to show path
    Why no prompt like DOS?
    DOS: PROMPT $P

  7. ls "List" Command
    ls [path] command to list file/folders
    ls (names)
    ls -l (details)
    ls -R (subdirectories)
    DOS: DIR [/W] [/S]

  8. cd "Change Directory" Command
    cd command to change directory
    cd or cd ~ (home directory)
    cd path
    cd .. (parent)
    cd / (root)
    DOS: CD

  9. exit Command
    exit