1/22/15 Flashcards
What does the cat command do?
It looks at the contents of a particular file. cat filename
If you want to take a look at the contents of a file one page at a time what command would you use?
more filename
What does the command head do?
It shows you the first 10 lines of a file
What does the command tail do?
Its shows the bottom lines of a file
Standard Output
echo output > file, to append more you would do echo more output»_space; file
What command will allow you to insert text into a vi where the cursor is
i
What command is used to put you back in command mode?
esc
When in command mode besides the arrows on the key board what will allow you to move left, right , up and down
h -left
l -right
j - down
k - up
What deletes lines in command mode in a vi?
dd
What command deletes word in command mode in a vi?
dw
What command changes a single word in command mode in a vi?
cw
What command copies a line in command mode in a vi?
yy
What command allows you to enter special commands in a vi
shift :
What commands saves a file in vi?
w
What command quits the vi?
q