E115

Pataasin ang iyong marka sa homework at exams ngayon gamit ang Quizwiz!

Copy file example.txt from HOME directory to ~/MyE115 directory while not in home directory

cp ~/example.txt ~/MyE115 cp ~/example.txt ~/MyE115/newName.txt

Parent Directory: Relative pathname

../

Current Directory: Relative pathname

./

E115 Course Locker: Absolute pathname

/afs/eos.ncsu.edu/courses/e/e115

Operating system : user interface DOS:

CLI (command line interface)

Make a directory MyE115 in HOME directory while in home directory

mkdir MyE115

Make a directory MyE115 in HOME directory while not in home directory

mkdir ~/MyE115

Move file example.txt from HOME directory to ~/MyE115 directory while in home directory

mv example.txt MyE115/newName.txt

Move file example.txt from HOME directory to ~/MyE115 directory while not in home directory

mv ~/example.txt ~/MyE115/newName.txt

putty login

remote-linux.eos.ncsu.edu

I am in HOME directory and so is folder; remove it

rm -rf folder

I am not in home directory but folder is; remove it

rm -rf ~/folder

I am in HOME directory and so is file.txt; remove it

rm file.txt rm -f file.txt

I am not in home directory but file.txt is; remove it

rm ~/file.txt rm -f ~/file.txt

Shortcuts: clear

used to clear terminal screen

Shortcuts: tab completion

used to complete long filenames

Operating system : user interface Terminal:

CLI (command line interface)

How to make a directory? (folder)

Make Directory [mkdir location/directory] mkdir (no output)

Home Directory: Absolute pathname

/afs/unity.ncsu.edu/users/e/ebrodger

How to create log file?

Log File [script -options logfilename.txt] script script -a (append) script -f (flushed) (expect output)

How to change current location?

Change Directory [cd directory] cd (no output)

How to copy files?

Copy File [cp location/file.ext newlocation] cp (no output)

Operating system : user interface Windows 7:

GUI (graphical user interface)

Operating system : user interface Linux Ubuntu:

GUI w/ CLI (graphical user interface w/ command line interface)

Operating system : user interface Mac OS X

GUI w/ CLI (graphical user interface w/ command line interface)

How to list the contents of directory?

List Contents [ls -options location/directory] ls ls -a (all) ls -l (long) ls -al ls -la (expect output)

How to find information on commands?

Manual pages [man command] man (expect output)

How to move files?

Move files [mv location/file.ext newlocation/newName.ext] mv (no output)

What current directory am I in?

Print Working Directory [pwd] pwd (expect output)

How to delete/remove files and folders?

Remove [rm -options location/file.ext] rm rm -r (recursive) (expect output) rm -f (forced) (no output)

Operating system : user interface DOS running a program:

TLI (text line interface)

Copy file example.txt from HOME directory to ~/MyE115 directory while in home directory

cp example.txt MyE115 cp example.txt MyE115/newName.txt

Standard syntax

eos% command -options argument_1 argument_2

List the contents of HOME directory using RELATIVE pathname while in home directory

ls ls -a ls -l ls -al ls -la

List the contents of HOME directory using RELATIVE pathname while not in home directory

ls ~/ ls -a ~/ ls -l ~/ ls -al ~/ ls -la ~/

Shortcuts: chaining (;)

used to execute multiple commands on the same line

Shortcuts: up and down arrow

used to scroll through commands

Home Directory: Relative pathname

~/


Kaugnay na mga set ng pag-aaral

Microeconomics Exam 1 (Multiple Choice Section)

View Set

Investment Planning - Efficient Market Theory (EMT)

View Set

chem exam 3 - ch 7 Copied from somone els

View Set

Ch. 2 Unit 1 exam Federal Government

View Set