Linux Command Line Interface
Linux Command Line Interface
- The Linux Command Line Interface
Command prompt # $ %
Cryptic commands
Case sensitive
/ Path separator
- Logon to cis2.oc.ctc.edu with Telnet
SSH Client
Server (cis2)
Connect to your home directory ~
User account
- The Bash Shell
Popular GNU Linux shell
Auto-complete with tab key
- Online Help / Switches And Conventions
Online help cmd --help
Switches -x --xxx
Options [x]
man cmd (Q to exit, Ctrl+Z to kill)
- clear Command
clear
DOS: CLS
- pwd "Print Working Directory" Command
pwd command to show path
Why no prompt like DOS?
DOS: PROMPT $P
- ls "List" Command
ls [path] command to list file/folders
ls (names)
ls -l (details)
ls -R (subdirectories)
DOS: DIR [/W] [/S]
- cd "Change Directory" Command
cd command to change directory
cd or cd ~ (home directory)
cd path
cd .. (parent)
cd / (root)
DOS: CD
- exit Command
exit