70 likes | 208 Vues
Files, Directories, Basic Commands. Dr. Michael L. Collard www.sdml.info/collard www.sdml.info/collard/linux collard@cs.kent.edu. Get a Shell. Remote: ssh (Secure Shell) Local (Fedora): Applications/System Tools/Terminal Right-click, “Add launcher to Desktop”
E N D
Files, Directories, Basic Commands Dr. Michael L. Collard www.sdml.info/collard www.sdml.info/collard/linux collard@cs.kent.edu
Get a Shell • Remote: ssh (Secure Shell) • Local (Fedora): • Applications/System Tools/Terminal • Right-click, “Add launcher to Desktop” • bash is a program, invoke by name
GNU Commands • Format: name [options] [files] • Options: • Short: ls –h • Long: ls –human-readable • Std. Options • --help • --version • Getting help with commands: man, info, which
File Mode bits (Permissions) User categories: ugo u – user g – group o – others Permissions: rwx r – read w – write x - execute
Timestamps • Access time • Last time file was read • Modification time • Last time contents of the file were changed (write) • Change time • Last time contents modified or file attributes changed
Bash Wildcards • * Matches zero or more characters • ? Matches exactly one character • [abc] Matches exactly one of the character abc • [0-9] Matches exactly one of the characters in this range • [!abc] Matches any character besides abc • {hd, sd} Matches the string hd or sd
Editors • For creating text files (typically ASCII or UTF-8) • Lots of choices (too many) • Fedora: gedit (Applications/Accessories/Text Editor • Terminal-based editors: • Can be used in a shell (with no windowing) • vi (vim) – Standard Linux editor • emacs – found on most Linux systems