Loading presentation...

Present Remotely

Send the link below via email or IM

Copy

Present to your audience

Start remote presentation

  • Invited audience members will follow you as you navigate and present
  • People invited to a presentation do not need a Prezi account
  • This link expires 10 minutes after you close the presentation
  • A maximum of 30 users can follow your presentation
  • Learn more about this feature in our knowledge base article

Do you really want to delete this prezi?

Neither you, nor the coeditors you shared it with will be able to recover it again.

DeleteCancel

Make your likes visible on Facebook?

Connect your Facebook account to Prezi and let your likes appear on your timeline.
You can change this under Settings & Account at any time.

No, thanks

Intro to Unix

No description
by

Ben Morse

on 7 November 2013

Comments (0)

Please log in to add your comment.

Report abuse

Transcript of Intro to Unix

Sir Unix A Lot
Viewing Files in your Current Directory
To view a list of files/directories in the directory are in, use the command '
ls
'
Copying & Dumping Files
To copy a file use the command '
cp file1 file2
' which makes a copy of file1 in the current directory and names it file2.
Basic UNIX Navigation
Once you are logged in, you can begin to navigate through directories and files.
What is UNIX?
Intro to Unix
Introduction to UNIX
Basic Commands
Advanced commands
VI prompt
YouTube tutorials
UNIX is a multitasking, multi-user computer operating system. We use this system for development and production. Everything in UNIX is either a file or a process. It is useful when looking for file information (naming convention, location, receipt time) and uses its own language to navigate.
Navigating to directories
To navigate through directories, enter the command '
cd
' followed by the directory name (case sensitive).
For example, if you wanted to navigate to 'srcdata01' you would use the command '
cd /srcdata01
'.
If you wanted to go back one directory, enter the command '
cd ..
'
Basic Unix Commands
Before we begin navigating through UNIX, here are some commands we will use:
cd
- Used to navigate through directories.
ls
- List all the files in that specific directory.
cp
- copy a file.
more
- Used before a filename to show a portion of the contents in that file. Spacebar is used to display more.
wc
- Displays the count of lines, words and characters in a file.
head/tail
- Will either display the first or last 10 lines in a file.
grep
- to search for a specific string within a file.

There are many more commands, and variations of the above commands, but this will be a good start as we begin to navigate through UNIX.

Please Note
- If you want to stop your current command, hold down 'ctrl + z'

.... And if you want to go back to your home directory, enter '
cd
'
There are two main ways to view the files/directories in your directory:
....And to view a list of files, including size and date timestamp, use the command '
ls -ltr
'
Also, use the command '
wc -l [filename]
' to run a count of records in a flat file.
The command '
mv file1 file2
' can also be used. This will rename the file, keeping only one file instead of two.
To dump records on a flat file use the command '
xdump [filename] max= [# of records you want]
'.
The command to dump a flat file with specific criteria:
'
xdump [filename] '[StartingBytePosition]/[Data]/Data]/'
'

If you wanted to see the frequency of which state people on a file live in, you can run a freq on a flat file.


This command is: '
field_freq.pl -i[filename] -s [starting position] -e [ending position]
'

This would display how many times each state shows up in the file.
Grep is another useful command that is commonly used.

The command is: '
grep [keyword] [filename]
'
A few notes about using the grep command:
The command is case sensitive, enter '
-i
' after grep to ignore sensitivity.
Searching for phrases or patterns must be surrounded by single quotes.
'
-v
' will display the lines that do NOT match.
The command '
ltg [keyword]
' will print all records with the stated keyword in the title.
YouTube Tutorials

Basic Unix Tutorial

Vi Tutorial
Thank you for viewing, for any questions feel free to contact me at bmorse@epsilon.com
Full transcript