Random Linux+ Question #42

Discussion in 'Linux+' started by tripwire45, Jul 20, 2005.

  1. tripwire45
    Honorary Member

    tripwire45 Zettabyte Poster

    13,493
    180
    287
    You want to us the vi text editor at the command line to edit a brand new, blank file. You type in the command for vi and the file name "newfile". Too late do you realize that you haven't yet created that file. What happens as a result of your typing:
    Code:
    vi newfile
    Choose only one answer.

    1. You will get an error message stating the file doesn't exist
    2. vi will create the file on the fly
    3. You will automatically be returned to the command prompt
    4. You are asked if you want vi to create the file

    Answer later.
     
    Certifications: A+ and Network+
  2. AJ

    AJ 01000001 01100100 01101101 01101001 01101110 Administrator

    6,897
    182
    221
    I would guess 4
     
    Certifications: MCSE, MCSA (messaging), ITIL Foundation v3
    WIP: Breathing in and out, but not out and in, that's just wrong
  3. Jellyman_4eva

    Jellyman_4eva Byte Poster

    213
    4
    34
    I would say in my infinite experience of vi (All of about 17 minutes) I would say 2
     
    Certifications: MCDST, MCITP-EDST/EDA/EA/SA/ MCSA 2K3/2K8, MCSE+M 2K3/2K8, ISA/TMG, VCP3/4, CCNA, Exchange, SQL, Citrix, A+, N+, L+, Sec+, Ser+, JNCIA-SSL, JNCIS-SSL
    WIP: Lots
  4. AJ

    AJ 01000001 01100100 01101101 01101001 01101110 Administrator

    6,897
    182
    221
    Hey Jellyman, that's 17 mions longer then me :ohmy
     
    Certifications: MCSE, MCSA (messaging), ITIL Foundation v3
    WIP: Breathing in and out, but not out and in, that's just wrong
  5. Jellyman_4eva

    Jellyman_4eva Byte Poster

    213
    4
    34
    Well what can I say!

    17 whole minutes of vi and I figure that (This is great)

    I know less than a lot of others, but as the UNIX people say "less is more"!!!!!!!!!
     
    Certifications: MCDST, MCITP-EDST/EDA/EA/SA/ MCSA 2K3/2K8, MCSE+M 2K3/2K8, ISA/TMG, VCP3/4, CCNA, Exchange, SQL, Citrix, A+, N+, L+, Sec+, Ser+, JNCIA-SSL, JNCIS-SSL
    WIP: Lots
  6. tripwire45
    Honorary Member

    tripwire45 Zettabyte Poster

    13,493
    180
    287
    Answer time. Correct answer is #2. If you type in "vi filename" and "filename" doesn't exist, vi will create it for you in whatever directory you happen to be in at the time.
     
    Certifications: A+ and Network+

Share This Page

Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.