Quantcast
Channel: User Kamil Maciorowski - Super User
Browsing all 651 articles
Browse latest View live

Comment by Kamil Maciorowski on Jenkins Groovy syntax not working for find...

Please do not cross-post. I don't know if the copy on SO is on-topic there, still you have posted it on more than one SE site and this is frowned upon.

View Article


Comment by Kamil Maciorowski on Retiming subtitles in language A based on...

This question is similar to: regex - replace ordered list of lines matching a string with another list. If you believe it’s different, please [edit] the question, make it clear how it’s different...

View Article


Answer by Kamil Maciorowski for Is it possible to combine two USB flash...

If "logical partition that would appear as one larger disk" is not a strict requirement then you can use Btrfs.First decide if you want to commit whole USB sticks to the filesystem you are going to...

View Article

Answer by Kamil Maciorowski for Sudoers NOPASSWD for single executable but...

man 5 sudoers says:When multiple entries match for a user, they are applied in order. Where there are multiple matches, the last match is used (which is not necessarily the most specific match).So you...

View Article

Answer by Kamil Maciorowski for Require bash script to be run with sudo (not...

UID and EUID variables are initialized by Bash at shell startup, but my tests indicate that if they are already in the environment then they will not be changed. The output of id -ru and id -u is...

View Article


Answer by Kamil Maciorowski for Setting up a cron job which runs on Monday in...

The first Thursday of a month is between the 1st and the 7th day of the month (inclusive). The second Thursday is between 8th and 14th, the third Thursday is between 15th and 21st.The Monday in the...

View Article

Comment by Kamil Maciorowski on Set niceness value in a systemd user service

The question is about a user service and the OP notes that "setting a nice value of -20 requires root permissions". The problem is a user service has no permission to set a negative niceness in the...

View Article

Comment by Kamil Maciorowski on SSD Activity History

"It's strange to me that it took a month" – Cloning an SSD takes about an hour. If (if!) they have cloned the SSD, it's not why the repair attempt took so long. If the data are not encrypted then they...

View Article


Answer by Kamil Maciorowski for Setting up a cron job which runs on the...

The first Thursday of a month is between the 1st and the 7th day of the month (inclusive). The second Thursday is between 8th and 14th, the third Thursday is between 15th and 21st.The Monday in the...

View Article


Comment by Kamil Maciorowski on Why am I unable to apply -R with rm on macOS...

"… it will expand to nothing" – It depends. The POSIX behavior is to leave the wildcard as is. There are options in various shells so you can get nothing or an error.

View Article

Comment by Kamil Maciorowski on Why do many hard disks have slightly more...

There is this formula. Some devices follow it, some don't.

View Article

Comment by Kamil Maciorowski on How can I flash an OS in a multiple partition...

To clarify: where the first comment says "all those tools write installers to a disk, and you use that to do an install", it means "usually to another disk (like a USB flash drive), then you use that...

View Article

Comment by Kamil Maciorowski on 1st character is getting replaced when trying...

Does the output of file new_test.csv mention CRLF?

View Article


Answer by Kamil Maciorowski for bash alias or bash function that adds a...

A function like this:# unalias nanotime first, if needednanotime() { nano "$(date +%Y-%m-%d_%H.%M.%S)-$1"}will do what you want, although it's limited.It simply glues the date string to the beginning...

View Article

Comment by Kamil Maciorowski on Why am I getting a notification I don't...

Bluetooth? One step further: wireshark.org/tools/oui-lookup.html

View Article


Comment by Kamil Maciorowski on Hide value in column when it is 0

In LibreOffice Calc the format with zero decimal places and zero leading zeros does this. It is coded as #. Does this method work in OpenOffice alike?

View Article

Comment by Kamil Maciorowski on How to deal with a “File is too large for...

Have you scanned the filesystem for errors recently?

View Article


Comment by Kamil Maciorowski on View files from multiple folders as one

I rarely use Windows. Did Microsoft remove the library functionality?

View Article

Comment by Kamil Maciorowski on what is the size of a ddrescue mapfile,...

@AlexisWilke If you manage to use dd to copy the content of a device to a regular file on a healthy filesystem, and if then you ddrescue to copy the regular file to a healthy destination, then the size...

View Article

Comment by Kamil Maciorowski on Print the second occurrence in a text file...

Something like awk '/bingo/ { cnt++ }; cnt>=2;' input_file. I have no time for an educative answer now. Somebody please take it from here, I won't mind.

View Article
Browsing all 651 articles
Browse latest View live