Send the link below via email or IMCopy
Present to your audienceStart 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.
Make your likes visible on Facebook?
You can change this under Settings & Account at any time.
Intro to Unix
Transcript of Intro to Unix
Viewing Files in your Current Directory
To view a list of files/directories in the directory are in, use the command '
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
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 '
' followed by the directory name (case sensitive).
For example, if you wanted to navigate to 'srcdata01' you would use the command '
If you wanted to go back one directory, enter the command '
Basic Unix Commands
Before we begin navigating through UNIX, here are some commands we will use:
- Used to navigate through directories.
- List all the files in that specific directory.
- copy a file.
- Used before a filename to show a portion of the contents in that file. Spacebar is used to display more.
- Displays the count of lines, words and characters in a file.
- Will either display the first or last 10 lines in a file.
- 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.
- If you want to stop your current command, hold down 'ctrl + z'
.... And if you want to go back to your home directory, enter '
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 '
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 '
' after grep to ignore sensitivity.
Searching for phrases or patterns must be surrounded by single quotes.
' will display the lines that do NOT match.
The command '
' will print all records with the stated keyword in the title.
Basic Unix Tutorial
Thank you for viewing, for any questions feel free to contact me at email@example.com