Unix & Linux
Using sed with special characters
I have a directory full of XML files that look like this, for which I want to change the value of the “offset” element number from 1 to some other number
How to cycle through reverse-i-search in BASH?
In the terminal, I can type Ctrl + R to search for a matching command previously typed in BASH. E.g., if I type Ctrl + R then grep, it lists my last grep command, and I can hit enter to use it. This only gives one suggestion though. Is there any way to cycle through other previously typed matching commands?
Why do I need to do resize2fs after lvextend?
For resizing LVM2 partition, one needs to perform the following 2 commands:
samba how to display files with colon in their names?
Samba does not display files correctly when they contain a colon.
How to determine what filesystem a directory exists on?
I have an NFS share which is shared across about two other machines. I recently realized that one of the servers isn’t sharing the directory and is keeping files all for itself. Is there a way to see if the NFS share is mounted in the directory I think it is in?
Why do I sometimes get repeatedly prompted with “>” in the terminal?
Alright, when I run certain commands the wrong way, (misspelled, etc.) The terminal outputs this: > instead of computername:workingfolder username$, and when I type enter it goes like this:
How to stop the loop bash script in terminal?
For example,
Multiseat X setup with a single dual head graphics card
I am considering trying to setup a multiseat system. It seems like this would be pretty straight forward if I had two graphics cards or if I didn’t need hardware based OpenGL acceleration. Is it possible to setup a multi seat system with only a single dual-headed graphics card?
Using ‘sed’ to find and replace
The few, the brave.