Archive for the ‘linux’ Category

htop in full details

November 16, 2019 Leave a comment

See for a very detailed explanation of the htop command.

Categories: linux Tags:

tree command

September 7, 2019 Leave a comment

You want to visualize the tree structure of the current directory.

You need the “tree” command. Under Manjaro it was not installed by default, but of course it could be installed easily with the package manager.

$ tree
├── greetings
│   ├──
│   └──

1 directory, 3 files

If you want to ignore a subdirectory, use the “-I” option:

$ tree -I target
├── Cargo.lock
├── Cargo.toml
├── src
│   ├── greetings
│   │   ├──
│   │   └──
│   └──
└── src.old

3 directories, 6 files

Categories: linux Tags: , , ,

get system info

August 19, 2019 Leave a comment

To get system info in a simple and readable way, use neofetch:


As I know, it also exists under Ubuntu.

Categories: linux Tags: ,

Make a GIF of your terminal and insert it in your GitHub README

June 30, 2019 Leave a comment

For your shiny new GitHub project you want to make an animated GIF and insert it in the README file.

I found a blog post about it here. In short:

$ ttyrec demo
# do some stuff
$ ttygif demo
# the result is in tty.gif

Under Manjaro I could install the packages ttyrec and ttygif with yay.

And then you can insert the GIF in your like this:

![GIF Demo](demo/demo.gif)
Categories: linux Tags: , , , ,

How to hide the side bar in okular?

March 16, 2019 Leave a comment

When you open a PDF in okular, you have a huge side bar on the left. How to hide it? Under View there is nothing about it :(

It’s under Settings. There, untick Show Navigation Panel. There is a shortcut for toggling the side bar: F7.

Categories: linux Tags: , ,

[manjaro] goodbye yaourt, hello yay

February 22, 2019 Leave a comment

Under Manjaro I’ve used yaourt so far to install AUR and even other packages. I’ve read there are problems with yaourt but it worked so well. However, I just heard that yaourt is not maintained any longer. So what to use instead of yaourt?

yay is very similar to yaourt in its functionalities and usage, thus it seems to be a good replacement.

I only had one issue, the output was not colored, but it was easy to fix. From the FAQ: “make sure you have the Color option in your /etc/pacman.conf“.

I even removed yaourt to force myself to use yay: “yay -R yaourt“.

yaourt was great and I’m thankful for its developers.


Categories: linux Tags: , , , , ,

[manjaro] convert refuses to produce PDFs

January 10, 2019 Leave a comment

Under Manjaro, I wanted to create a PDF from some JPG files. However, convert dropped an error:

$ convert *.jpg out.pdf
convert: attempt to perform an operation not allowed by the security policy `PDF' @ error/constitute.c/IsCoderAuthorized/408.

Edit the file /etc/ImageMagick-7/policy.xml and find the following line:

<policy domain="coder" rights="none" pattern="{PS,PS2,PS3,EPS,PDF,XPS}" />

Put it between comments (<!-- and -->) and everything is good again.

I found this solution here.

Categories: bash, linux Tags: , , ,