bash_commands

bash_commands - example/program_name executes a program...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
Sheet1 Page 1 Basic Bash Commands Covered 3/30/09 pwd - print working directory prints the absolute path to the directory that you are in cd - change directory usage: cd <directory name> directory name an be either a relative path or an absolute path ls - List information about fileS prints the contects of the current working directory cp - Copy usage copy src dest mv - move same as copy but destroys original man - display manual for command usage: man <command name> example: man man chmod - change access permision find - find file toucn - Change file timestamps, change the access and/or modification times of the specified files symbols: . current directory example: cd . does nothing as it changes your current directory to the current directory
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Background image of page 2
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: example: ./program_name executes a program which is specified to reside in your current directory .. parent directory example: cd . . moves you to the parent directory example: mv foo . ./bar moves a file foo to the parent directory and renames it bar / - root directory example: cd / moves you to the root directory ~ - home directory example: cd ~ moves you to your home directory Globbing Symbols: * - Kleene star Match any number of any symbol ? - Match a single symbol - list Sheet1 Page 2 Matches expanded list example: ls [a,b] is the equivalent of ls a b...
View Full Document

This note was uploaded on 08/27/2009 for the course CS 35L taught by Professor Eggert during the Spring '09 term at UCLA.

Page1 / 2

bash_commands - example/program_name executes a program...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online