Skip to content

Magenaut

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

Unix & Linux

split file into two parts, at a pattern

August 8, 2022 by Magenaut

How to split a large file into two parts, at a pattern?

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

Multiple commands during an SSH inside an SSH session

August 8, 2022 by Magenaut

I have a local machine which is supposed to make an SSH session to a remote master machine and then another inner SSH session from the master to each of some remote slaves, and then execute 2 commands i.e. to delete a specific directory and recreate it.

Categories Q&A, Unix & Linux Tags amazon-ec2, bash, read, ssh Leave a comment

How can I trigger the screensaver’s locking feature using D-BUS from the command line?

August 8, 2022 by Magenaut

How can I trigger the screen saver manually from the command line? I’m using GNOME 3.8.4 on Fedora 19, but the solution should not necessarily be specific to this distro.

Categories Q&A, Unix & Linux Tags fedora, gnome, gnome3, screen-lock, screensaver Leave a comment

Is it possible to run pure GNU?

August 8, 2022 by Magenaut

On the GNU Project webpage, there’s a subsection called “All GNU packages” which lists the various software in the GNU project.

Categories Q&A, Unix & Linux Tags gnu, hurd, linux Leave a comment

Linux command line. Move all files and directories in directory, except some files and directories

August 8, 2022 by Magenaut

I have a folder A which has files and directories, I want to move all those files and directories to another folder B, except file, file2, directory, and directory2.

Categories Q&A, Unix & Linux Tags command-line, directory, files, move Leave a comment

Can’t do SSH public key login under encrypted home

August 8, 2022 by Magenaut

I can’t do ssh public key login to my server and I think this issue is related to the fact my home is encrypted. I chose the option “encrypt my home folder” under the Ubuntu install setup. The permissions on /home/MY-USER are 700.

Categories Q&A, Unix & Linux Tags ecryptfs, ssh, ubuntu Leave a comment

Shell programming, avoiding tempfiles

August 8, 2022 by Magenaut

I often write KSH shell scripts that follow the same pattern:

Categories Q&A, Unix & Linux Tags ksh, scripting, shell Leave a comment

Non-interactive shell expand alias

August 8, 2022 by Magenaut

I’m having trouble getting aliases to expand on my hosting account when I run a command like:

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

Deciphering the output of iw list valid interface combinations

August 8, 2022 by Magenaut

I’m trying to decipher a portion of the output from ‘iw list.’ I tried to search online and could not find an explanation of how to interpret the output. I’m interested in utilizing a wireless adapter in Wi-Fi Direct mode and I want to make sure that it is compatible.

Categories Q&A, Unix & Linux Tags iw, wifi Leave a comment

Binary search in a sorted text file

August 8, 2022 by Magenaut

I have a big sorted file with billions of lines of variable lengths. Given a new line I would like to know which byte number it would get if it had been included in the sorted file.

Categories Q&A, Unix & Linux Tags search, text-processing Leave a comment
Older posts
Newer posts
← Previous Page1 … Page193 Page194 Page195 … 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