| bio | website | user.it.uu.se/~embe8573 |
|---|---|---|
| location | Uppsala, Sweden | |
| age | 29 | |
| visits | member for | 1 year, 5 months |
| seen | 3 hours ago | |
| stats | profile views | 285 |
Emanuel Berg
Hire me! Programmer, Swedish university degree in Computer Science.
computer projects (includes CV, letters, code, screenshots)
internet activity (where to find me)
Check out some of my Unix & Linux tech writing.
I'm taking a break from this site as I have other things to do, and this site is too time consuming at the moment. If you see some mistake in any of my writings, please drop me a mail (check out the links above), or just fix it :)
|
May 11 |
comment |
How to define a Compose Key in terminal (no desktop environment)? Thanks, got it to work. Only, I had to change compose 'a' 'a' to 'å' into compose 'o' 'a' to U+00E5, otherwise loadkeys complained about a syntax error. |
|
Apr 30 |
comment |
How to save current command on zsh? Another way to solve that would be to have a tabbed terminal. Just open a new tab. |
|
Apr 30 |
comment |
How to save current command on zsh? @michelpm: Yeah? Try zsh --version. I have zsh 4.3.17 (i686-pc-linux-gnu) and it works for me. (Edit: Oh. That's what you did.) |
|
Apr 30 |
comment |
how to change `rm` to as a command like `mv ~/ .trash` Why do you suggest shadow-aliasing rm when you know it is not recommended? You should change your answer, and not put that in a comment (since it is important). I know you know it, but for the OP - @misteryes - check out this. |
|
Apr 30 |
comment |
Why is the UNIX kernel so crucial? I know you are able to write a much better answer than this. Otherwise, this answer would fit in a comment (as to its length). |
|
Apr 30 |
comment |
Colorize Bash Console Color @Brad: Yes, you need to change the fourth (4th) digit to 255 (or any digit higher than what you have now: 170 and 85) for red and green to make it brighter. The first digit has index 0, so the fourth digit has index 3. This is why, when you use this color, you use tput setaf 3 (and not 4). |
|
Apr 29 |
comment |
Why is the UNIX kernel so crucial? The kernel is vital to any OS. In a way, the kernel is the OS: without it, your computer is a non-interactive machine. The kernel is the program that turns the machine into a tool. It is the process that always runs, from which you fork processes (a program to run programs). Process management, memory allocation (and protection), hardware I/O, the filesystem, resource allocation (the CPU), the kernel does all this. The kernel, while software, is the interface between the machine (hardware) and anything you do with a computer (with software!). It is not a Unix specific thing. |
|
Apr 29 |
comment |
Change colors in console/virtual terminal @DanielOertwig: Made an edit. |
|
Apr 23 |
comment |
.bashrc alias not working If you do lots of changes to the rc file, as I suspect you will, you could be helped by an alias like this: alias bup="hash -r; unalias -a; source ~/.bashrc". The third part is the most important one. Faster to type than the source (or .) command with the filepath. Or even better, put it in a script (i.e., another file) so it will still work even though you break the rc file (e.g., by a typo). Or, you could put that line first in .bashrc, that would be sort of the same. |
|
Apr 22 |
comment |
How to get the GNOME version? @SuperMagic: Those numbers are fairly consistent, although it is irritating not to be able to get a definite answer. My /usr/share/gnome/gnome-version.xml says 3.4.2, but gnome-session --version says 3.4.2.1 so that's sort of correct (?). Maybe the morale of all of this is that the version isn't holy; it is just a number. |
|
Apr 21 |
comment |
Unix vs Mac OS X, Notable Difference Related |
|
Apr 18 |
comment |
emacs copy and paste Check out this question on GNU readline, and especially the answer by @jordanm - what we need is a global kill ring, for all the Linux VTs; for xterm, urxvt, etc., launched in X; and for Emacs. |
|
Apr 16 |
comment |
Supress expansion of * in echo In zsh: noglob echo * |
|
Apr 16 |
comment |
emacs copy and paste No, you don't want to use the mouse, and it is not the Emacs kill ring anyway. |
|
Apr 16 |
comment |
emacs copy and paste My take is that 99% of the "outside of a GUI" people will not wish to use the mouse. |
|
Apr 16 |
comment |
Why isn't Gnus scoring emails based on the To: or Cc: headers? Right, that was the group I had in mind. It'll be interesting to see if I'm right or wrong. |
|
Apr 14 |
comment |
Detecting X session in a bash script (.bashrc etc.) With this, I get the same result in both X and in the console, namely [ -t 0 ] and [ -t 1 ] are both true. |
|
Apr 14 |
comment |
Detecting X session in a bash script (.bashrc etc.) @AloisMahdal: Check out the edit. That does it for me, including the tty stuff. |
|
Apr 14 |
comment |
Detecting X session in a bash script (.bashrc etc.) @AloisMahdal: OK, I changed it. As for the "log in via tty1-6", as it happens, that's what I do, and then I use the second solution (above) and set a variable. Check out this .zshrc and search for export VT. I use the variable to hold what Linux VT/console/tty I'm in (for the zsh prompt) but in X, I just set it to "X" (although not a VT). But that's details, you could work it out any way you'd like in bash using the same principle. |
|
Apr 14 |
comment |
Detecting X session in a bash script (.bashrc etc.) @AloisMahdal: Aha, my stuff doesn't work in bash (I use zsh). Didn't think of that. Well, you could try it in zsh (type zsh) and possibly do some modifications if you like it, to make it work in bash. |

