March 29, 2024, 12:24:21 PM

News : LinuxSolved.com Linux Help Community Forum..


Author Topic: how to do these things in VI edit please some one  (Read 5420 times)

Offline seanny

  • New Member
  • Posts: 1
how to do these things in VI edit please some one
« on: February 27, 2008, 02:08:49 AM »
.Login to your directory
2. make a subdirectory name with a "01" at the end of your name
USe your name as the subdirectory name with a "01" at the end of your name
Ie "your name "01"

Use the mkdir command to create the directory
3 make another subdirectory under your home directory and use 02 at the end of your name

4
change directory to the "yor name "01 directory

5 create a file in the "your name 01" directory

6 return to your home directory
How did you return to your home directory
7 Enter the command ls-1
how do you tell directory from an ordinary file

8 Enter the command ls
How do you a directory from a n ordinary file?

Part II
Type the command

Offline Ricky

  • LST CareTaker
  • Specially Skilled
  • *****
  • Posts: 2381
Re: how to do these things in VI edit please some one
« Reply #1 on: February 28, 2008, 12:44:53 AM »
Do you want one of us to type commands for all instructions you posted ?
Seems like a question from a linux course.

Offline voidwyzard

  • New Member
  • Posts: 3
Re: how to do these things in VI edit please some one
« Reply #2 on: March 05, 2008, 11:55:10 PM »


Vi (vim) is an editor.  I'm not sure why you want to do these from an editor, but you can.

<li>how to do these things in VI edit please some one?
<li> 1. Login to your directory<br>
cd ; vi
#or, you can use 'netrw'...
vi ~/.

<li>2. make a subdirectory name with a "01" at the end of your name
USe your name as the subdirectory name with a "01" at the end of your name
Ie "your name "01"<br>
:!mkdir ${USER}01
#that is: colon exclamation-point mkdir space dollar{USER}01

<li>3 make another subdirectory under your home directory and use 02 at the end of your name<br>
:!mkdir ${USER}02

<li>4. change directory to the "your name "01 directory<br>
:cd ${USER}01
#or, using netrw, use down-arrow or "j" down to your directory, then enter

<li>5 create a file in the "your name 01" directory<br>
:e myfile
#make your changes
:w myfile

<li>6 return to your home directory<br>
:cd ..
#or :cd ~

<li> 7. Enter the command ls-1, how do you tell directory from an ordinary file<br>
:!ls -l |less
#colon ls dash (lowercase)L vertical-bar less
look for listings with permissions that begin "d", for directory

<li>8 Enter the command ls, how do you a directory from a n ordinary file?