Class Notes (922,490)
US (356,007)
PSU (5,042)
CMPSC (10)
CMPSC 122 (4)
Lecture 2

CMPSC 122 Lecture 2: Unix Notes 2
Premium

3 Pages
27 Views

Department
Computer Science
Course Code
CMPSC 122
Professor
Jun Fukuyama

This preview shows page 1. Sign up to view the full 3 pages of the document.
Unix Chapter 3
- Naming Files:
o Maximum of 255 words
o Not iportat topic…
- Creating Files:
o We create files with Unix text editor Not important
o Direct output to file Not important
o Touch command - Important
Create a file using a touch command
touch (file name).txt
- Unix text editor
o Ed: edit text
o Vi: visual editing mode - Important
o Vim: vi improved
o Pico: pine composer use this command to edit files - Important
o Nano: more features use this command to also edit files - Important
- Reading Files
o Cat: short for concatenate use this command to read long files, and join files together
Important
o More: let’s ou read oe lie of a tet each tie. You click space to cotiue. Does’t let
you go back one page
o Less: use this command to entire files rather than one line at a time. Allows you to go
backward and forward
Less -m (file name).txt shows progress of page number with percentages
Less -n (file name).txt shows line numbers
- Creating directories:
o Mkdir use this command to make a directory Important
- Renaming files:
o Mv use this command
Mv options:
-n: no overwriting
-f: force overwriting
-i: interactive overwriting Gives user a warning or option
-v: verbose gives reporting information
find more resources at oneclass.com
find more resources at oneclass.com

Loved by over 2.2 million students

Over 90% improved by at least one letter grade.

Leah — University of Toronto

OneClass has been such a huge help in my studies at UofT especially since I am a transfer student. OneClass is the study buddy I never had before and definitely gives me the extra push to get from a B to an A!

Leah — University of Toronto
Saarim — University of Michigan

Balancing social life With academics can be difficult, that is why I'm so glad that OneClass is out there where I can find the top notes for all of my classes. Now I can be the all-star student I want to be.

Saarim — University of Michigan
Jenna — University of Wisconsin

As a college student living on a college budget, I love how easy it is to earn gift cards just by submitting my notes.

Jenna — University of Wisconsin
Anne — University of California

OneClass has allowed me to catch up with my most difficult course! #lifesaver

Anne — University of California
Description
Unix Chapter 3 - Naming Files: o Maximum of 255 words o Not important topic - Creating Files: o We create files with Unix text editor Not important o Direct output to file Not important o Touch command - Important Create a file using a touch command touch (file name).txt - Unix text editor o Ed: edit text o Vi: visual editing mode - Important o Vim: vi improved o Pico: pine composer use this command to edit files - Important o Nano: more features use this command to also edit files - Important - Reading Files o Cat: short for concatenate use this command to read long files, and join files together Important o More: lets you read one line of a text each time. You click space to continue. Doesnt let you go back one page o Less: use this command to entire files rather than one line at a time. Allows you to go backward and forward Less -m (file name).txt shows progress of page number with percentages Less -n (file name).txt shows line numbers - Creating directories: o Mkdir use this command to make a directory Important - Renaming files: o Mv use this command Mv options: -n: no overwriting -f: force overwriting -i: interactive overwriting Gives user a warning or option -v: verbose gives reporting information
More Less
Unlock Document


Only page 1 are available for preview. Some parts have been intentionally blurred.

Unlock Document
You're Reading a Preview

Unlock to view full version

Unlock Document

Log In


OR

Don't have an account?

Join OneClass

Access over 10 million pages of study
documents for 1.3 million courses.

Sign up

Join to view


OR

By registering, I agree to the Terms and Privacy Policies
Already have an account?
Just a few more details

So we can recommend you notes for your school.

Reset Password

Please enter below the email address you registered with and we will send you a link to reset your password.

Add your courses

Get notes from the top students in your class.


Submit