Skip to content

Magenaut

  • Home
  • Topics
    • Notes
    • Tutorial
    • Bug fixing
    • Extension
    • Server
  • Q&A
  • Privacy Policy
  • About

Unix & Linux

Is Vim immune to copy-paste attack?

August 8, 2022 by Magenaut

You should never paste from web to your terminal. Instead, you should paste to your text editor, check the command and then paste to the terminal.

Categories Q&A, Unix & Linux Tags clipboard, escape-characters, security, special-characters, vim Leave a comment

Take text “screenshot” of current terminal contents

August 8, 2022 by Magenaut

I would like to, every 30 seconds or so, copy all text of a certain terminal or terminal emulator to a file, and display it in conky. I’m not talking about simple redirection (command > file), which doesn’t work for ncurses programs or games such as NetHack.

Categories Q&A, Unix & Linux Tags shell, terminal, tty Leave a comment

Disable bash’s cache of executables in the path

August 8, 2022 by Magenaut

Note that this is not a duplicate. I am asking about disabling the cache, not clearing it. If you have a cache to clear, then it is obviously not disabled.

Categories Q&A, Unix & Linux Tags bash Leave a comment

Bash scripts ran from from gnome/nautilus don’t have environment variables

August 8, 2022 by Magenaut

In my ~/.bashrc and ~/.profile I have some variables set to some filepaths:

Categories Q&A, Unix & Linux Tags bash, bashrc, debian, gnome3 Leave a comment

How to automatically record all your terminal sessions with script utility

August 8, 2022 by Magenaut

What I want to achieve is be able to record my terminal sessions to file automatically whenever I use Yakuake/Konsole.

Categories Q&A, Unix & Linux Tags bash, konsole, scripting, terminal Leave a comment

History of UNIX not including current directory in $PATH

August 8, 2022 by Magenaut

In the UNIX world, it’s well understood that you need to prefix binaries in the current directory with ./ in order to run them: . is not in $PATH by default. This is to avoid evil binaries overriding system utils like ls and getting code exec.

Categories Q&A, Unix & Linux Tags history, path Leave a comment

Using find -perm to find setuid files

August 8, 2022 by Magenaut

I want to find list of all suid binaries. I use the command

Categories Q&A, Unix & Linux Tags find, permissions, setuid Leave a comment

How to unzip a multipart (spanned) ZIP on Linux?

August 8, 2022 by Magenaut

I need to upload a 400mb file to my web server, but I’m limited to 200mb uploads. My host suggested I use a spanned archive, which I’ve never done on Linux.

Categories Q&A, Unix & Linux Tags archive, zip Leave a comment

Bash: issuing trap twice

August 8, 2022 by Magenaut

If I issue the trap builtin twice [for the same signal], what happens? Is the second command added to the first, or does it replace the first?

Categories Q&A, Unix & Linux Tags bash, shell, trap Leave a comment

Linux utility to bench mark clock speed of CPU

August 8, 2022 by Magenaut

I have a Linux PC with a 3.4 GHz CPU. I must check this processor to see if it actually runs at that speed. Is there a benchmark available? I ran sysbench but it only provides time of completion, and I must find the maximum (actual) clock rate.

Categories Q&A, Unix & Linux Tags benchmark, cpu-frequency, linux Leave a comment
Older posts
Newer posts
← Previous Page1 … Page242 Page243 Page244 … Page371 Next →
  1. michealSmith07 on Is there a way to dynamically refresh the less command?August 21, 2022

    That is a very nice post. I like this post.

  2. anonymous on Fix libwacom9 dependency issue when upgrade DebianJune 27, 2022

    saved my day!! Thanks for the help…

  3. sreedhar on Fix libwacom9 dependency issue when upgrade DebianMay 10, 2022

    Thanks its working

  4. saintnick on Fix libwacom9 dependency issue when upgrade DebianMay 10, 2022

    remove libwacom2 worked for me as well

  5. ranafoul on Fix libwacom9 dependency issue when upgrade DebianApril 22, 2022

    apt remove libwacom2 helped on kali 2022.01. gr8

.net ajax asp.net asp.net-core asp.net-mvc asp.net-mvc-3 asp.net-mvc-4 asp.net-web-api bash c# command-line css custom-post-types custom-taxonomy dataframe dictionary django entity-framework functions gridview html iis javascript jquery json linux list matplotlib numpy pandas php plugin-development plugins posts python python-2.7 python-3.x security shell shell-script sql string vb.net webforms wp-query

© 2026 Magenaut • Built with GeneratePress