About 50 results
Open links in new tab
  1. Save all the terminal output to a file - Unix & Linux Stack Exchange

    Is there some way of saving all the terminal output to a file with a command? I'm not talking about redirection command > file.txt Not the history history > file.txt, I need the full terminal...

  2. Is it possible to see cp speed and percent copied?

    Mar 12, 2016 · I'm having problems when copying large files using nautilus (it gets stuck). I need to copy, using cp. I would like to know if there are any parameters that shows the % copied …

  3. How do I reuse the last output from the command line?

    Aug 25, 2018 · If you're running under X, select the output you want with the mouse to copy it, and then middle-click to paste it. If you're running on a text console, you can do a similar thing …

  4. Get the last word on each line - Unix & Linux Stack Exchange

    May 27, 2022 · With sed it would be simply sed '1,2d;s/.* //' 1,2d mean to d elete the first to second line, replacing the tail the s ubstitute command removes everything up to the last …

  5. How can I duplicate a line and search and replace on the duplicate …

    Nov 2, 2021 · I'm trying to duplicate lines in a text file that contain certain special characters, but in the duplicate, substitute the special character with "regular" ASCII characters. …

  6. Redirecting the content of a file to the command "echo"

    Jul 1, 2016 · As that command substitution is not quoted, the split+glob operator would be applied to it. For instance if my_file.txt contains *, that would print the list of file names in the current …

  7. Write Python stdout to file immediately - Unix & Linux Stack …

    Feb 3, 2015 · When trying to write the stdout from a Python script to a text file (python script.py > log), the text file is created when the command is started, but the actual content isn't …

  8. Loop through a folder and list files - Unix & Linux Stack Exchange

    It depends what you want to do with the directories. To simply print the name, without a check whether it is a directory you could use ls: ls -1 sample Better would be find, because you can …

  9. Using `openssl` to display all certificates of a PEM file

    Mar 21, 2022 · I can use the following command to display the certificate in a PEM file: openssl x509 -in cert.pem -noout -text But it will only display the information of the first certificate. A …

  10. Extract a part of one line from a file with sed

    I want to read one part of one line from a file. For example: POP3_SERVER_NAME = localhost I want to return only localhost, using sed. This text is on the third line. I do this to extract the li...