About 270,000 results
Open links in new tab
  1. Changing a file's "Date Created" and "Last Modified" attributes ... - linux

    81 I'm using merge cap to create a merge pcap file from 15 files. For the merged file, I have changed the name to that of the first of the 15 files. But I would also like to change the merged file's attributes like …

  2. How can I populate a file with random data? - Unix & Linux Stack …

    Mar 7, 2012 · How can I create a new file and fill it with 1 Gigabyte worth of random data? I need this to test some software. I would prefer to use /dev/random or /dev/urandom.

  3. Create file in folder: permission denied - Unix & Linux Stack Exchange

    Apr 18, 2015 · The default UMASK 022 (in Ubuntu ), so the permissions for /home/username becomes 755. and you logged in as user francisco-vergara and trying to creating files in user sixyen Home: i.e. …

  4. How can I create a file with multiple lines from the command-line?

    How can I enter the following contents in a file: Hi abcd I tried using echo "Hi\\nabcd" >> ab.txt, but in the file it's written as is (the \\n is included, instead of a newline)

  5. How to create a simple .txt (text) file using terminal?

    I'm just trying to review basic terminal commands. Having said that, how do I create a text file using the terminal only?

  6. Generate File of a certain size? - Unix & Linux Stack Exchange

    Apr 16, 2017 · I'd like to generate a file with the name example.file. I could use touch example.file but I want the file to be exactly 24MB in size. I already checked the manpage of touch, but there is no …

  7. How to create a file and parent directories in one command?

    Aug 26, 2016 · Is there a flag/option for touch, mkdir, >, or some other command that will allow me to create a file and any non-existent parent directories at the same time? For instance, let's say I'm in …

  8. Compress a folder with tar? - Unix & Linux Stack Exchange

    To tar and gzip a folder, the syntax is: tar czf name_of_archive_file.tar.gz name_of_directory_to_tar Adding - before the options (czf) is optional with tar. The effect of czf is as follows: c — create an …

  9. Shell script to create a file if it doesn't exist?

    Nov 16, 2017 · 63 I need to create a shell script that checks for the presence of a file and if it doesn't exist, creates it and moves on to the next command, or just moves on to the next command. What I …

  10. How do you put date and time in a file name? - Unix & Linux Stack …

    Mar 17, 2017 · I'm trying to execute a command and would like to put the date and time in the output file name. Here is a sample command I'd like to run. md5sum /etc/mtab > 2016_4_25_10_30_AM.log …