SORU
21 ŞUBAT 2012, Salı


Terminal penceresinde Linux bir dosya oluşturmak için?

Linux bir dosya oluşturmak için en kolay yolu nedir?

CEVAP
21 ŞUBAT 2012, Salı


Dosyayı içeren istediğinize bağlı olarak:

  • Boş bir dosya için touch /path/to/file
  • Bir dosya bazı komut çıktısını içeren somecommand > /path/to/file.

      eg: grep --help > randomtext.txt
          echo "This is some text" > randomtext.txt
    
  • nano /path/to/file vi /path/to/file (any other editor emacs,gedit etc)
    Eğer var değil mi, ya da düzenleme için mevcut bir açılır veya & girmek için boş bir dosya oluşturup açar

Bunu Paylaş:
  • Google+
  • E-Posta
Etiketler:

YORUMLAR

SPONSOR VİDEO

Rastgele Yazarlar

  • Codecourse

    Codecourse

    3 ŞUBAT 2009
  • Randall P Studios

    Randall P St

    27 AĞUSTOS 2009
  • THE RED DRAGON

    THE RED DRAG

    6 ŞUBAT 2009