About 3,180,000 results
Open links in new tab
  1. linux - How can I copy the output of a command directly into my ...

    May 25, 2017 · cat file | xclip. Paste the text you just copied into a X application: xclip -o. To paste somewhere else other than an X application, such as a text area of a web page in a browser …

  2. How to cat <<EOF >> a file containing code? - Stack Overflow

    cat with <<EOF>> will create or append the content to the existing file, won't overwrite. whereas cat with <<EOF> will create or overwrite the content. cat test.txt hello cat <<EOF>> test.txt > hi …

  3. How does an SSL certificate chain bundle work? - Stack Overflow

    Unix: cat cert2.pem cert1.pem root.pem > cert2-chain.pem Windows: copy /A cert1.pem+cert1.pem+root.pem cert2-chain.pem /A 2.2 Run this command. openssl verify …

  4. "No such file or directory" but it exists - Stack Overflow

    Oct 16, 2010 · $ cat deluge-gtk.lock cat: deluge-gtk.lock: No such file or directory $ file deluge-gtk.lock deluge-gtk ...

  5. linux - Retrieve last 100 lines logs - Stack Overflow

    You can simply use the following command:-tail -NUMBER_OF_LINES FILE_NAME. e.g tail -100 test.log. will fetch the last 100 lines from test.log

  6. How to obtain the number of CPUs/cores in Linux from the …

    Jun 26, 2011 · $ cat /proc/cpuinfo | awk '/^processor/{print $3}' | tail -n 1 NOTE: Since /proc/cpuinfo holds a number of entries corresponding to the cpus count, a processor field …

  7. How to append output to the end of a text file - Stack Overflow

    Oct 23, 2018 · printf "hello world" >> read.txt cat read.txt hello world However if you were to replace printf with echo in this example, echo would treat \n as a string, thus ignoring the …

  8. Encode to Base64 a specific file by Windows Command Line

    Jan 5, 2021 · cat <file_name>| base64 to obtain the file's contents encoded as base64. On Windows I'm not able to have the same result. I have found this solution: certutil -encode -f …

  9. Looping through the content of a file in Bash - Stack Overflow

    Oct 6, 2009 · $ cat /tmp/test.txt Line 1 Line 2 has leading space Line 3 followed by blank line Line 5 (follows a blank line) and has trailing space Line 6 has no ending CR There are four …

  10. bash - How can I split a large text file into smaller files with an ...

    cat x* > <file> Split a file, each split having 10 lines (except the last split): split -l 10 filename. Split a file into 5 files. File is split such that each split has same size (except the last split): split -n 5 …