Skip to content

Magenaut

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

Unix & Linux

zsh is in /usr/bin, but also in /bin, what is the difference?

August 6, 2022 by Magenaut

The /etc/shells says it has zsh installed in /bin/zsh, but also in /usr/bin/zsh.

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

Is it possible to send a HEREDOC over ssh to a remote host from inside a script running locally?

August 6, 2022 by Magenaut

I essentially want to run a script on machine A which will SSH into machine B, execute commands on B, and return the output to machine A.

Categories Q&A, Unix & Linux Tags csh, io-redirection, ssh Leave a comment

How to copy SELinux context from one directory and apply it to another directory?

August 6, 2022 by Magenaut

How can I copy SELinux context from one directory and apply it to another?

Categories Q&A, Unix & Linux Tags centos, rhel, selinux Leave a comment

Resetting password of another Linux

August 6, 2022 by Magenaut

I have an external hdd partitioned into two. One of the partitions has Linux (Ubuntu) installed on it (bootable). The thing is I have forgotten the password of it’s user (single user).

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

How to split stdout to go to several output files?

August 6, 2022 by Magenaut

Say, I have a command command which prints huge number of lines to stdout:

Categories Q&A, Unix & Linux Tags text-processing Leave a comment

How can I cd into a directory as root?

August 6, 2022 by Magenaut

Let’s say there’s a directory that I don’t have the privileges to access. Obviously sudo cd foo won’t work, because cd is a shell builtin in every shell ever.

Categories Q&A, Unix & Linux Tags bash, cd-command, sudo Leave a comment

Configuring the default timeout for the SSH agent

August 6, 2022 by Magenaut

I use ssh-add to add my SSH keys to the SSH agent. By default, it adds them indefinitely. There’s a command-line option to specify a timeout, but is there a configuration file option which will specify the default timeout?

Categories Q&A, Unix & Linux Tags ssh, ssh-agent Leave a comment

Is it possible to name a part of a command to reuse it in the same command later on?

August 6, 2022 by Magenaut

If I want to move a file called longfile from /longpath/ to /longpath/morepath/ can I do something like

Categories Q&A, Unix & Linux Tags bash, command-line, line-editor Leave a comment

Can I make a public directory under a private directory?

August 6, 2022 by Magenaut

I have a personal folder /a/b on the server with permission 700. I don’t want others to list the contents in /a/b. The owner of /a is root.

Categories Q&A, Unix & Linux Tags directory, linux, permissions, shell Leave a comment

82MB of “reserved memory” on 512MB (x86) system

August 6, 2022 by Magenaut

I reinstalled a fresh debian 10 on an old x86 system with 512MB RAM (everything works ok).
Available memory is 431MB. (No graphic card plugged right now)

Categories Q&A, Unix & Linux Tags linux, memory, ram, x86 Leave a comment
Older posts
Newer posts
← Previous Page1 … Page365 Page366 Page367 … 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