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

  • Epic Tutorials for iPhone, iPad and iOS

    Epic Tutoria

    18 EYLÜL 2011
  • theKGB65

    theKGB65

    24 Aralık 2007
  • Visual Life

    Visual Life

    3 Temmuz 2006