About 400,000 results
Open links in new tab
  1. How to create a file in Linux from terminal window? [closed]

    How to create a text file on Linux: Using touch to create a text file: $ touch NewFile.txt; Using cat to create a new file: $ cat NewFile.txt The file is created, but it's empty and still waiting for the …

  2. unix - Create text file and fill it using bash - Stack Overflow

    Mar 29, 2021 · Creating a text file in unix can be done through a text editor (vim, emacs, gedit, etc). But what you want might be something like this. echo "insert text here" > myfile.txt That …

  3. How to create a file with a given size in Linux? - Stack Overflow

    Sep 26, 2008 · There are lots of answers, but none explained nicely what else can be done. Looking into man pages for dd, it is possible to better specify the size of a file. This is going to …

  4. How to send list of file in a folder to a txt file in Linux

    Nov 6, 2010 · Just to add to this answer: " ls > filenames.txt " creates/overwrites the content of the txt file. If you want to append more filenames/data (without overwriting previous entries) in an …

  5. Quickly create a large file on a Linux system - Stack Overflow

    Nov 3, 2008 · Absent a system call that actually allocates space for a file without writing data (and Linux and BSD lack this, probably Solaris as well) you might get a small improvement in …

  6. How to Create several files from a list in a text file?

    Dec 22, 2011 · To simply create the files, assuming that file_full_of_files_names is a text file with whitespace-delimited filenames: cat file_full_of_files_names | xargs touch To actually fill them …

  7. How to create a text file with specific text in it in Linux?

    Mar 14, 2015 · Create a text file where 3 sentences underneath eachother are placed. I know the command to create an empty textfile it is "cat > sample.txt" but i want to create this file with …

  8. Create a file in Linux using C - Stack Overflow

    @Michael Foukarakis: temporarily, there are bigger problems to deal with, but you're right. O_EXCL should be added (to avoid following malicious broken symlinks, and to avoid …

  9. Create file with content in one line of bash - Stack Overflow

    Apr 20, 2017 · Great answer from @that-other-guy, also important to note that you can include the directory of the file in there and not to forget your bin/bash stuff at the start, and that it …

  10. linux - How to edit a text file in my terminal - Stack Overflow

    Feb 29, 2016 · To re-edit a file in your terminal using the vi command, you can follow these steps: Open your terminal. Use the following command to open the text file in vi: vi helloWorld.txt; …

Refresh