779 reputation
310
bio website
location
age 43
visits member for 1 year, 10 months
seen 2 hours ago

I am a curious person who always likes to learn more. I like solving puzzles and I like working with computers. Which means I enjoy some of the more complex questions on this site, as well as the answers which go into details and explain all facets.


Oct
7
answered How to find IP address of device connected on the same network as PC based on MAC id
Sep
24
awarded  Autobiographer
Aug
1
comment Remove GET parameters from file names in directory
I am not familar with the rename utility. But find . -name \?* -ls does select all the files starting with a question mark. You could replace the -ls with a mv and basename.
Jul
31
revised Is it recommended to use zsh instead of bash scripts?
added 1 character in body
Jul
24
comment Copy over existing files without confirmation?
+1 for pointing at how to bypass an alias. Tempted to -1 for the brute force solution.
Jul
17
comment #!/bin/bash - no such file or directory
True. And as mentioned, there is the much more portable /usr/bin/env method to have a program locate bash (or an other interpreter) for you. No need to hardcode a pah.
Jul
17
comment #!/bin/bash - no such file or directory
I can not speak for all distributions, but when I do a create a test script with: #!/usr/bin/env bash echo Script is running! (no execute bit set) and I try to execute it with ./script.demo I get -bash: ./script.demo: Permission denied. chmod +x script.demo ./script.demo produces the expected "Script is running!"
Jul
7
comment Is it safe to take the drive image of the current working drive?
+1 for a good answer. But I disagree with the ranting. Dd is not bad. It is just inappropriate for this and explaining why that is the case is a good thing.
Jul
5
answered 24gb files removed but no changes to the available space. What could have happened?
Jun
28
revised I/O schedulers for normal harddisks
Fixed capitalisation errors.
Jun
28
comment I/O schedulers for normal harddisks
Also, may I suggest to change "normal disks" to "rotating disk", or 'normal classic disk with rotating platters' or whatever you prefer. Normal on its own is subjective and in a few years SSD is something else might just be considered normal.
Jun
28
comment I/O schedulers for normal harddisks
MRB or GPT is about the partition scheme. It is only relevant for a small part of the disk (the very few first sectors). The rest depends on the partitions you created and the filesystems on them. Not on the partition scheme. Thus part of your question is easy to answer: No, GPT or MBR has no influence on this.
Jun
28
suggested suggested edit on I/O schedulers for normal harddisks
Jun
10
comment Kill process spawned by ssh when ssh dies
Can you test with the shell options set before starting the scp command? Or by starting a shell, setting shopt and starting scp ?
May
1
comment Rebuild RAID1 from existing disk, and add another
This earlier post about the same problem has this important part: "Hetzner.... activated the rescue system (Linux)". I read that as the system is now running from a different instalation or even a different OS. The original disks (one of which should be bootable) will still have the RAID configuration.
Apr
9
comment How to limit a user's RAM on Ubuntu?
The answer you are looking for is called ulimit. There is already a post about that here on this site.
Mar
26
answered Intelligently switch between multiple BASH processes
Mar
16
comment Stuck in login loop after editing /etc/profile
It is a bit late now, but the next time you do similar things: do not log out. Switch to a different TTY and test if your login changes work. Only then consider logging out.
Mar
1
comment I don't have writing access to a subdirectory in /
Just as an added note to the OP: Do not 'fix' this by adding the 'w' to the others permissions.
Feb
18
comment Not able to change default group for user with `sudo usermod -g`
Or log in on another terminal to check if all still works before you log out in your old one.