About 56 results
Open links in new tab
  1. Show tail of files in a directory? - Unix & Linux Stack Exchange

    A simple pipe to tail -n 200 should suffice. Example Sample data. $ touch $(seq 300) Now the last 200: $ ls -l | tail -n 200 You might not like the way the results are presented in that list of 200. For that you …

  2. How do I read the last lines of a huge log file?

    Feb 20, 2024 · tail --bytes 100M logfile.log | tail However, if you're using GNU Coreutil¹'s tail implementation, that already does this (i.e., it seeks to the end of the file minus 2.5 kB, and looks …

  3. bash - Extract parts of a string using head and tail only - Unix ...

    Oct 22, 2023 · Hello I would like to know if there is a way where I can only use head, tail, and pipes (and redirection eventually) to extract and output the start, middle characters, and end of a string Example:...

  4. How can I save the output of tail to my clipboard or somewhere ... - linux

    Mar 4, 2024 · tail -n 1000 ./mylogfile.log My process is this: SSH into server Run that tail command Copy 1000 lines of code Paste and report it in Slack What I want to achieve: Run that command Somehow …

  5. tail program output to file in Linux - Unix & Linux Stack Exchange

    tail program output to file in Linux Ask Question Asked 13 years, 10 months ago Modified 8 years, 1 month ago

  6. Why use "tail -n 1" for finding the nth line of a file in Unix?

    Mar 13, 2023 · Using head -n 7 prints 7 lines; if you only want the seventh, then tail -n 1 prints the last. The advantage of the sed command is that it works more economically when you want line 7654321 …

  7. Why does head; tail on a large file sometimes take a long time and ...

    Aug 17, 2017 · The files are quite large which is why I opted to only read the head and tail of the files instead of the entire text. However, when I run the script the large files take a long time to "finish up" …

  8. networking - How can I prevent Tailscale from overwriting /etc/resolv ...

    Oct 31, 2024 · I'm using Tailscale on a Linux system, but I'm running into an issue with Tailscale's "Magic DNS" feature, which is overwriting my /etc/resolv.conf file and preventing server …

  9. Can someone explain this tail - Unix & Linux Stack Exchange

    I'm looking through some of the scripts that are on the servers and came across an 80MB shell script. Naturally curious I decided to look in there and came across this line: tail +4802 $0 | zcat -...

  10. How can I colorize head, tail and less, same as I've done with cat?

    How can I colorize head, tail and less, same as I've done with cat? Ask Question Asked 12 years, 3 months ago Modified 12 years, 2 months ago