Search results

  1. Rob

    I'm looking to tail a file while ignoring 3 different strings and the line under them

    But I also want to ignore the line under the match .. i tried using -A in those greps but i don't think it works with -v :/
  2. Rob

    I'm looking to tail a file while ignoring 3 different strings and the line under them

    Update - figured out a good sed command for this: sed '{/Timeout\|fgets\|Network/,+1d}' That strips out the strings along w/ the line under - woo :)
  3. Rob

    Linux on MacBook Pro 2019

    I've installed ubuntu and fedora on the older (non-touchbar) macbook pros and airs and it works pretty well - the only thing that was a pain was that it would eat through the battery quickly. I'd give either of those a try as well as slack - just keep loading up usb sticks until you find...
  4. Rob

    I'm looking to tail a file while ignoring 3 different strings and the line under them

    ohhh.. just thought of another option.. it'd be better if i could grep out the stderr along w/ it's next line before it goes into the file? No idea on that one though. One day i'd like to combine the two scripts, but I haven't thought that far ahead :)
  5. Rob

    I'm looking to tail a file while ignoring 3 different strings and the line under them

    So, i have a domain name querying script.. it generates 4 char strings, then adds .com to the end and does a whois on them. When whois returns 0, it prints 'blah.com: available' in a text file (/tmp/list.txt). So, while this is running, i'm tailing /tmp/list.txt.. I also have stderr going...
  6. Rob

    command: cat

    Hey there @daysaputra - welcome to the forum. You're in the right place.. there are some tutorials here and plenty of other articles and things to read. I wrote a little ebook (in my signature) that might help, but mainly try to use Linux as much as you can and things will start seeping in.
  7. Rob

    sudo su - and su -

    They're just different tools to get around to the same thing.. With su - you provide the root password to become root. With sudo su -, you're providing the user password to become root, and you can control who can do it with the /etc/sudoers file.. even controlling what commands the user...
  8. Rob

    Change working directory in shell script

    Well, try what i put up there.. but add a command to run after it's switched into the directory. Paste this into a new file called test.sh, then make it executable (chmod +x test.sh) and run it like ./test.sh /home/ #!/bin/bash # Make sure the script is run w/ an argument if [[ $# -eq 0 ]]...
  9. Rob

    Chrome

    Hey there theresa - thanks for wanting to help out! Yeah, best bet as @wizardfromoz noted would be the membership upgrades link. Thanks!
  10. Rob

    Change working directory in shell script

    You could maybe make the path $arg1 in the script.. then at the very top, add a cd $1. Then you'd run the script like scriptname.sh /path/to/dir/. Start it off something like: #!/bin/bash if [[ $# -eq 0 ]] ; then echo "" echo "Usage: $0 <path>" echo "" echo -e "Example: $0...
  11. Rob

    Command Question

    Hey there - by using the chown command, you changed the ownership and the group owners of all files under /var/lib/vnstat to the vnstat user .. that's how they should be. Also, if you want to change the permissions back to normal: /var/lib/vnstat wants to be 755 The files under there (one for...
  12. Rob

    Eeesh.. hope you feel better soon man!

    Eeesh.. hope you feel better soon man!
  13. Rob

    command: cat

    wow, old post lol.. Even though I know i don't need to use 'cat file | grep something', i still do it every day from muscle memory haha.. could be i'm catting something, then just uparrow and add the grep to the end most of the time though.
  14. Rob

    Can I run ls with with multiple arguments

    i'm surprised you haven't run out of inodes on there.. whenever I ran into too many files for ls to handle, I always ended up using /find. I'd go w/ a combination of what @JasKinasis came up with .. and change around the filters a bit. You probably know the naming convention of them.. log...
  15. Rob

    nmap question

    You should look at the nmap man page - it'll give you all of its options man nmap from your terminal.. Also, tons of info here: https://nmap.org/book/man.html
  16. Rob

    nmap question

    The -sn specifies no port scan, just a ping sweep. More info: https://linuxhint.com/nmap_ping_sweep/
  17. Rob

    nmap question

    You're close .. i'm not sure if that order would work. Try: nmap -sn 192.168.2.0/24 -oN scan.txt (obviously replace the ip/cidr w/ your own) For output, the -oN outputs in normal text format. You can also do xml or other formats as well: https://nmap.org/book/man-output.html
  18. Rob

    nmap question

    Generally, since it's for class, we won't just hand over an answer. What have you come up with so far? We can work with you to get it.
  19. Rob

    Partition flag?

    Hey there - welcome to the forum :) For your partition question, you can mount them however you'd like.. for instance, some would mount /dev/sdb1 to /data .. in your case, create an empty directory named /D and mount the filesystem there. As for type, it depends on which filesystem you want to...
  20. Rob

    mp4 conversion to dcpomatic format

    I'm not sure if ffmpeg supports the dcpomatic extension (what is the extension btw?), but here's a nice write-up of how to do it: https://opensource.com/article/17/6/ffmpeg-convert-media-file-formats
Top