Quantcast
Channel: User kenorb - Unix & Linux Stack Exchange
Browsing all 44 articles
Browse latest View live

Comment by kenorb on Does curl have a --no-check-certificate option like wget?

Obtaining verified SSL certificates by scammers/hackers is no brainer nowadays, you can get it in few minutes. So if somebody is stupid enough to run some random bash install scripts from the internet,...

View Article



Comment by kenorb on How do I trigger autocomplete without a tab key?

Related: Trigger programmatically autocomplete event for shell

View Article

Comment by kenorb on Can sed replace new line characters?

-r is only available in GNU sed, not BSD.

View Article

Comment by kenorb on How to troubleshoot a bash script called by a python...

Is it Linux or macOS?

View Article

Comment by kenorb on How do I remove leading text from this string

Are you changing the file, or command output? What's your key pattern here? Removing ##SHUTDOWN_MAINT## or removing everything till 41 or removing till any number?

View Article


Comment by kenorb on How to troubleshoot a bash script called by a python...

@Sidereal strace -f bbb-record --rebuild 5b64bdbe09fdefcc3004c987f22f163ca846f1ea-1574708322765

View Article

Comment by kenorb on Which process has PID 0?

For kill: "If pid equals 0, then sig is sent to every process in the process group of the calling process."

View Article

Comment by kenorb on Disable Wine debugger and kill process instead

Related bug: bugs.winehq.org/show_bug.cgi?id=49556

View Article


Comment by kenorb on Unsigned Debian Jessie Release error

Same problem with Debian Buster container (latest python image): docker run python apt-get update.

View Article


Comment by kenorb on How do I take a screen shot of my Xvfb buffer?

Debian/Ubuntu: To install xwd and convert, run: apt-get install x11-apps imagemagick

View Article

Comment by kenorb on blk_update_request: I/O error, dev fd0, sector 0

Related: blk_update_request: I/O error, dev fd0, sector 0.

View Article

Comment by kenorb on How to verify SSH fingerprint and connect without adding...

Related: What is a SSH key fingerprint and how is it generated?

View Article

Comment by kenorb on shell find -delete "directory not empty"

This question should be re-opened, because the other one is too much specific to __pycache__, plus this one have better answers and has more votes.

View Article


Answer by kenorb for How to diff files ignoring comments (lines starting with...

Try:diff -b -I '^#' -I '^ #' file1 file2Please note that the regex has to match the corresponding line in both files and it matches every changed line in the hunk in order to work, otherwise it'll...

View Article

Answer by kenorb for Why are PATH variables different when running via sudo...

You can check why (it's different) by running sudo sudo -V.For example on Linux run:$ sudo sudo -V | grep PATHValue to override user's $PATH with:...

View Article


Why ssh immediately disconnects when using -F /dev/stdin syntax?

I've configured and booted default Ubuntu VM box by the following commands:vagrant init ubuntu/trusty64; vagrant up --provider virtualboxNow, for education purposes, I'd like to use the following...

View Article

Answer by kenorb for How to troubleshoot a bash script called by a python...

If nothing is shown on the terminal, you can redirect output into the file, e.g.For your entire script (all output) into the file (change it in Python):./script.sh &> output.logFor the single...

View Article


Answer by kenorb for Finding all large files in the root filesystem

The following command not only find you the top 50 largest files (>100M) on your filesystem, but also sort (GNU sort) by the biggest:find / -xdev -type f -size +100M -exec du -sh {} ';' | sort -rh |...

View Article

How to sort files based on the json property value inside the file?

I've downloaded list of videos via youtube-dl and each file has corresponding .json file containing certain properties. So I would like to sort the files based on the selected json property which is...

View Article

Answer by kenorb for Bash one liner to change configuration parameters

Using ex editor (part of Vi):ex +'%s/^ValueTwo[^=]\?=[^0-9]\?\zs[^$]\+/22222/' -scwq config.iniExplanation:+cmd - executes ex/vi command;%s/foo/bar/ - search and replace syntax;^ - beginning of the...

View Article
Browsing all 44 articles
Browse latest View live




Latest Images