dt.iki.fi

11 posts are tagged "shell"

Use dash as /bin/sh

This article only slightly expands on what the archwiki says about it. Linking /bin/sh to dash instead of bash is not the same as "changing your default shell". I want startup scripts and everything that has a #!/bin/sh shebang to use the lightest possible shell by default, but I still want my tru.....

Shell Scripting For Speed

Inspired by a forum thread Choose which shell your scripts use, that's the "#/bin/*sh" at the top: dash: very small & fast but limited. you will have to use more external commands to accomplish things. bash: bulkier, takes longer to load, slightly slower (although to notice this at all one ha.....

nocache ‑ minimize filesystem caching effects

Once again I have to copy tons of files to a USB stick, and it's way too slow. It's a known effect on Linux systems. Why filemanagers cannot recognize that, I don't know. It's be enough to copy files one by one (queuing) instead of starting all those operation all at once. It also happens on the com.....

How to not only encrypt but also decrypt a (password) string

Towards the end (points 4. and 5.) this article has instructions on how to encrypt/decrypt any string. It might come in handy when e.g. checking your Email with curl, because one wouldn't want the password in plain text either on the command line or in some file. Here's a slightly refined version: o.....

Translate Text via Command Line through Tor

I sometimes use a shortcut to quickly translate snippets of highlighted text, via google translate. I hate to admit it, but it does this best. It auto-detects the input language and defaults to english for output, which is what I need in most cases. There's a few applications for translating text sn.....

How to provide information about peripherals with dmesg

You want to see how your Linux system reacts to a certain peripheral being plugged in (smartphone, monitor, USB stick etc.). dmesg can provide that information, but one needs to separate it from previous messages. Here's how: Make sure the device in question is unplugged. Open a terminal, maximise .....

Migrating Git Repos

I feel the need to migrate all my github stuff to somewhere else. Because Microsoft is buying Github. Gitlab does not seem to be that much different. In the end, I chose two providers: framagit.org and notabug.org - just to be on the safe side. The migration itself happened via web interface and isn.....