1 / 7

Files, Directories, Basic Commands

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”

sen
Télécharger la présentation

Files, Directories, Basic Commands

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Files, Directories, Basic Commands Dr. Michael L. Collard www.sdml.info/collard www.sdml.info/collard/linux collard@cs.kent.edu

  2. 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

  3. 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

  4. File Mode bits (Permissions) User categories: ugo u – user g – group o – others Permissions: rwx r – read w – write x - execute

  5. 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

  6. 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

  7. 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

More Related