+ All Categories
Home > Documents > Linux Commandscsc.columbusstate.edu/carroll/6100/lectures/linuxCommands1/linux... · Linux Commands...

Linux Commandscsc.columbusstate.edu/carroll/6100/lectures/linuxCommands1/linux... · Linux Commands...

Date post: 20-Apr-2018
Category:
Upload: phungnhu
View: 219 times
Download: 2 times
Share this document with a friend
23
Linux Commands Dr. Hyrum D. Carroll August 25, 2016
Transcript
Page 1: Linux Commandscsc.columbusstate.edu/carroll/6100/lectures/linuxCommands1/linux... · Linux Commands I (review) I man - show manual for a command, example: ‘man ls’ (press ‘q’

Linux Commands

Dr. Hyrum D. Carroll

August 25, 2016

Page 2: Linux Commandscsc.columbusstate.edu/carroll/6100/lectures/linuxCommands1/linux... · Linux Commands I (review) I man - show manual for a command, example: ‘man ls’ (press ‘q’

Quiz

Page 3: Linux Commandscsc.columbusstate.edu/carroll/6100/lectures/linuxCommands1/linux... · Linux Commands I (review) I man - show manual for a command, example: ‘man ls’ (press ‘q’

Linux Commands

Page 4: Linux Commandscsc.columbusstate.edu/carroll/6100/lectures/linuxCommands1/linux... · Linux Commands I (review) I man - show manual for a command, example: ‘man ls’ (press ‘q’

Linux Commands I (review)

I man

I ls

I cd

I touch

I cp

I mv

I rm

I mkdir

I rmdir

Page 5: Linux Commandscsc.columbusstate.edu/carroll/6100/lectures/linuxCommands1/linux... · Linux Commands I (review) I man - show manual for a command, example: ‘man ls’ (press ‘q’

Linux Commands I (review)

I man - show manual for a command, example: ‘man ls’ (press‘q’ to exit the man page)

I ls

I cd

I touch

I cp

I mv

I rm

I mkdir

I rmdir

Page 6: Linux Commandscsc.columbusstate.edu/carroll/6100/lectures/linuxCommands1/linux... · Linux Commands I (review) I man - show manual for a command, example: ‘man ls’ (press ‘q’

Linux Commands I (review)

I man - show manual for a command, example: ‘man ls’ (press‘q’ to exit the man page)

I ls - list directory, similar to dir on windows, example: ‘ls/etc’, use ‘ls -l /etc’ to see more detail

I cd

I touch

I cp

I mv

I rm

I mkdir

I rmdir

Page 7: Linux Commandscsc.columbusstate.edu/carroll/6100/lectures/linuxCommands1/linux... · Linux Commands I (review) I man - show manual for a command, example: ‘man ls’ (press ‘q’

Linux Commands I (review)

I man - show manual for a command, example: ‘man ls’ (press‘q’ to exit the man page)

I ls - list directory, similar to dir on windows, example: ‘ls/etc’, use ‘ls -l /etc’ to see more detail

I cd - change directory, example: ‘cd /etc/’

I touch

I cp

I mv

I rm

I mkdir

I rmdir

Page 8: Linux Commandscsc.columbusstate.edu/carroll/6100/lectures/linuxCommands1/linux... · Linux Commands I (review) I man - show manual for a command, example: ‘man ls’ (press ‘q’

Linux Commands I (review)

I man - show manual for a command, example: ‘man ls’ (press‘q’ to exit the man page)

I ls - list directory, similar to dir on windows, example: ‘ls/etc’, use ‘ls -l /etc’ to see more detail

I cd - change directory, example: ‘cd /etc/’

I touch - update the timestamp on a file, example: ‘touchfoobar’

I cp

I mv

I rm

I mkdir

I rmdir

Page 9: Linux Commandscsc.columbusstate.edu/carroll/6100/lectures/linuxCommands1/linux... · Linux Commands I (review) I man - show manual for a command, example: ‘man ls’ (press ‘q’

Linux Commands I (review)

I man - show manual for a command, example: ‘man ls’ (press‘q’ to exit the man page)

I ls - list directory, similar to dir on windows, example: ‘ls/etc’, use ‘ls -l /etc’ to see more detail

I cd - change directory, example: ‘cd /etc/’

I touch - update the timestamp on a file, example: ‘touchfoobar’

I cp - copy a file or directory, example: ‘cp source dest’ ifyou want to copy a directory use the -R option for recursive:‘cp -R /source /dest’

I mv

I rm

I mkdir

I rmdir

Page 10: Linux Commandscsc.columbusstate.edu/carroll/6100/lectures/linuxCommands1/linux... · Linux Commands I (review) I man - show manual for a command, example: ‘man ls’ (press ‘q’

Linux Commands I (review)

I man - show manual for a command, example: ‘man ls’ (press‘q’ to exit the man page)

I ls - list directory, similar to dir on windows, example: ‘ls/etc’, use ‘ls -l /etc’ to see more detail

I cd - change directory, example: ‘cd /etc/’

I touch - update the timestamp on a file, example: ‘touchfoobar’

I cp - copy a file or directory, example: ‘cp source dest’ ifyou want to copy a directory use the -R option for recursive:‘cp -R /source /dest’

I mv - move a file, example: ‘mv source dest’

I rm

I mkdir

I rmdir

Page 11: Linux Commandscsc.columbusstate.edu/carroll/6100/lectures/linuxCommands1/linux... · Linux Commands I (review) I man - show manual for a command, example: ‘man ls’ (press ‘q’

Linux Commands I (review)

I man - show manual for a command, example: ‘man ls’ (press‘q’ to exit the man page)

I ls - list directory, similar to dir on windows, example: ‘ls/etc’, use ‘ls -l /etc’ to see more detail

I cd - change directory, example: ‘cd /etc/’

I touch - update the timestamp on a file, example: ‘touchfoobar’

I cp - copy a file or directory, example: ‘cp source dest’ ifyou want to copy a directory use the -R option for recursive:‘cp -R /source /dest’

I mv - move a file, example: ‘mv source dest’

I rm - remove a file, example: ‘rm somefile’ to remove adirectory you may need the -R option, you can also use the -f

option which tells it not to confirm each file: ‘rm -Rf dir/’

I mkdir

I rmdir

Page 12: Linux Commandscsc.columbusstate.edu/carroll/6100/lectures/linuxCommands1/linux... · Linux Commands I (review) I man - show manual for a command, example: ‘man ls’ (press ‘q’

Linux Commands I (review)

I man - show manual for a command, example: ‘man ls’ (press‘q’ to exit the man page)

I ls - list directory, similar to dir on windows, example: ‘ls/etc’, use ‘ls -l /etc’ to see more detail

I cd - change directory, example: ‘cd /etc/’

I touch - update the timestamp on a file, example: ‘touchfoobar’

I cp - copy a file or directory, example: ‘cp source dest’ ifyou want to copy a directory use the -R option for recursive:‘cp -R /source /dest’

I mv - move a file, example: ‘mv source dest’

I rm - remove a file, example: ‘rm somefile’ to remove adirectory you may need the -R option, you can also use the -f

option which tells it not to confirm each file: ‘rm -Rf dir/’

I mkdir - make a directory, example: ‘mkdir foobar’

I rmdir

Page 13: Linux Commandscsc.columbusstate.edu/carroll/6100/lectures/linuxCommands1/linux... · Linux Commands I (review) I man - show manual for a command, example: ‘man ls’ (press ‘q’

Linux Commands I (review)

I man - show manual for a command, example: ‘man ls’ (press‘q’ to exit the man page)

I ls - list directory, similar to dir on windows, example: ‘ls/etc’, use ‘ls -l /etc’ to see more detail

I cd - change directory, example: ‘cd /etc/’

I touch - update the timestamp on a file, example: ‘touchfoobar’

I cp - copy a file or directory, example: ‘cp source dest’ ifyou want to copy a directory use the -R option for recursive:‘cp -R /source /dest’

I mv - move a file, example: ‘mv source dest’

I rm - remove a file, example: ‘rm somefile’ to remove adirectory you may need the -R option, you can also use the -f

option which tells it not to confirm each file: ‘rm -Rf dir/’

I mkdir - make a directory, example: ‘mkdir foobar’

I rmdir - remove an empty directory, example: ‘rmdir foobar’

Page 14: Linux Commandscsc.columbusstate.edu/carroll/6100/lectures/linuxCommands1/linux... · Linux Commands I (review) I man - show manual for a command, example: ‘man ls’ (press ‘q’

Linux Commands II

I cat - dumps files to the screen with no page breaks

I more - displays a file with page breaks after the screen fills up

I less - displays a file on the screen

I pwd - print working directory - lets you know where you are inthe directory structure

I * - a wild card character - represents any string; e.g., ‘more*’ will display all the files in a directory

I up and down arrows - goes to previous or next command - ashort cut to avoid typing long strings

I ! {partial} - executes the last command with the name thatstarted with the string {partial}

I !$ - the last parameter on the previous line

I which - locate a command

Page 15: Linux Commandscsc.columbusstate.edu/carroll/6100/lectures/linuxCommands1/linux... · Linux Commands I (review) I man - show manual for a command, example: ‘man ls’ (press ‘q’

Linux Commands II

I cat - dumps files to the screen with no page breaks

I more - displays a file with page breaks after the screen fills up

I less - displays a file on the screen

I pwd - print working directory - lets you know where you are inthe directory structure

I * - a wild card character - represents any string; e.g., ‘more*’ will display all the files in a directory

I up and down arrows - goes to previous or next command - ashort cut to avoid typing long strings

I ! {partial} - executes the last command with the name thatstarted with the string {partial}

I !$ - the last parameter on the previous line

I which - locate a command

Page 16: Linux Commandscsc.columbusstate.edu/carroll/6100/lectures/linuxCommands1/linux... · Linux Commands I (review) I man - show manual for a command, example: ‘man ls’ (press ‘q’

Linux Commands II

I cat - dumps files to the screen with no page breaks

I more - displays a file with page breaks after the screen fills up

I less - displays a file on the screen

I pwd - print working directory - lets you know where you are inthe directory structure

I * - a wild card character - represents any string; e.g., ‘more*’ will display all the files in a directory

I up and down arrows - goes to previous or next command - ashort cut to avoid typing long strings

I ! {partial} - executes the last command with the name thatstarted with the string {partial}

I !$ - the last parameter on the previous line

I which - locate a command

Page 17: Linux Commandscsc.columbusstate.edu/carroll/6100/lectures/linuxCommands1/linux... · Linux Commands I (review) I man - show manual for a command, example: ‘man ls’ (press ‘q’

Linux Commands II

I cat - dumps files to the screen with no page breaks

I more - displays a file with page breaks after the screen fills up

I less - displays a file on the screen

I pwd - print working directory - lets you know where you are inthe directory structure

I * - a wild card character - represents any string; e.g., ‘more*’ will display all the files in a directory

I up and down arrows - goes to previous or next command - ashort cut to avoid typing long strings

I ! {partial} - executes the last command with the name thatstarted with the string {partial}

I !$ - the last parameter on the previous line

I which - locate a command

Page 18: Linux Commandscsc.columbusstate.edu/carroll/6100/lectures/linuxCommands1/linux... · Linux Commands I (review) I man - show manual for a command, example: ‘man ls’ (press ‘q’

Linux Commands II

I cat - dumps files to the screen with no page breaks

I more - displays a file with page breaks after the screen fills up

I less - displays a file on the screen

I pwd - print working directory - lets you know where you are inthe directory structure

I * - a wild card character - represents any string; e.g., ‘more*’ will display all the files in a directory

I up and down arrows - goes to previous or next command - ashort cut to avoid typing long strings

I ! {partial} - executes the last command with the name thatstarted with the string {partial}

I !$ - the last parameter on the previous line

I which - locate a command

Page 19: Linux Commandscsc.columbusstate.edu/carroll/6100/lectures/linuxCommands1/linux... · Linux Commands I (review) I man - show manual for a command, example: ‘man ls’ (press ‘q’

Linux Commands II

I cat - dumps files to the screen with no page breaks

I more - displays a file with page breaks after the screen fills up

I less - displays a file on the screen

I pwd - print working directory - lets you know where you are inthe directory structure

I * - a wild card character - represents any string; e.g., ‘more*’ will display all the files in a directory

I up and down arrows - goes to previous or next command - ashort cut to avoid typing long strings

I ! {partial} - executes the last command with the name thatstarted with the string {partial}

I !$ - the last parameter on the previous line

I which - locate a command

Page 20: Linux Commandscsc.columbusstate.edu/carroll/6100/lectures/linuxCommands1/linux... · Linux Commands I (review) I man - show manual for a command, example: ‘man ls’ (press ‘q’

Linux Commands II

I cat - dumps files to the screen with no page breaks

I more - displays a file with page breaks after the screen fills up

I less - displays a file on the screen

I pwd - print working directory - lets you know where you are inthe directory structure

I * - a wild card character - represents any string; e.g., ‘more*’ will display all the files in a directory

I up and down arrows - goes to previous or next command - ashort cut to avoid typing long strings

I ! {partial} - executes the last command with the name thatstarted with the string {partial}

I !$ - the last parameter on the previous line

I which - locate a command

Page 21: Linux Commandscsc.columbusstate.edu/carroll/6100/lectures/linuxCommands1/linux... · Linux Commands I (review) I man - show manual for a command, example: ‘man ls’ (press ‘q’

Linux Commands II

I cat - dumps files to the screen with no page breaks

I more - displays a file with page breaks after the screen fills up

I less - displays a file on the screen

I pwd - print working directory - lets you know where you are inthe directory structure

I * - a wild card character - represents any string; e.g., ‘more*’ will display all the files in a directory

I up and down arrows - goes to previous or next command - ashort cut to avoid typing long strings

I ! {partial} - executes the last command with the name thatstarted with the string {partial}

I !$ - the last parameter on the previous line

I which - locate a command

Page 22: Linux Commandscsc.columbusstate.edu/carroll/6100/lectures/linuxCommands1/linux... · Linux Commands I (review) I man - show manual for a command, example: ‘man ls’ (press ‘q’

Linux Commands II

I cat - dumps files to the screen with no page breaks

I more - displays a file with page breaks after the screen fills up

I less - displays a file on the screen

I pwd - print working directory - lets you know where you are inthe directory structure

I * - a wild card character - represents any string; e.g., ‘more*’ will display all the files in a directory

I up and down arrows - goes to previous or next command - ashort cut to avoid typing long strings

I ! {partial} - executes the last command with the name thatstarted with the string {partial}

I !$ - the last parameter on the previous line

I which - locate a command

Page 23: Linux Commandscsc.columbusstate.edu/carroll/6100/lectures/linuxCommands1/linux... · Linux Commands I (review) I man - show manual for a command, example: ‘man ls’ (press ‘q’

Access to Linux Machines

I Go to http://www.cs.mtsu.edu/

I Select CS Account Management from the menu on the rightside

I Log with your pipeline account

I For account purpose - use “COMS 6100 and PhD program”

I Request comsherschel group permissions

I You will be using herschel.cs.mtsu.edu for your work

I You will need to obtain remote access through SSH, PuTTYor X2Go


Recommended