Skip to content

Magenaut

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

Unix & Linux

How to know number of cores of a system in Linux?

August 11, 2022 by Magenaut

I wanted to find out how many cores my system has, so I searched the same question in Google. I got some commands such as the lscpu command.
When I tried this command, it gave me the following result:

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

Replace string with contents of a file using sed

August 11, 2022 by Magenaut

I have two different files:

Categories Q&A, Unix & Linux Tags replace, sed Leave a comment

zsh I/O redirection: redirecting and then piping; what is going on?

August 11, 2022 by Magenaut

Can somebody explain what is going on in this command:

Categories Q&A, Unix & Linux Tags io-redirection, pipe, zsh Leave a comment

How to force ssh client to use only password auth?

August 11, 2022 by Magenaut

If I use pubkey auth from e.g.: an Ubuntu 11.04 how can I set the ssh client to use only password auth to a server? (just needed because of testing passwords on a server, where I default log in with key)

Categories Q&A, Unix & Linux Tags key-authentication, password, ssh Leave a comment

Grabbing the first [x] characters for a string from a pipe

August 11, 2022 by Magenaut

If I have really long output from a command (single line) but I know I only want the first [x] (let’s say 8) characters of the output, what’s the easiest way to get that? There aren’t any delimiters.

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

What’s the difference between SFTP, SCP and FISH protocols?

August 11, 2022 by Magenaut

I used to think SCP is a tool to copy files over SSH, and copying files over SSH is called SFTP, which is itself a synonym to FISH.

Categories Q&A, Unix & Linux Tags fish-protocol, scp, sftp, ssh Leave a comment

Why does Ctrl-D (EOF) exit the shell?

August 11, 2022 by Magenaut

Are you literally “ending a file” by inputting this escape sequence, i.e. is the interactive shell session is seen as a real file stream by the shell, like any other file stream? If so, which file?

Categories Q&A, Unix & Linux Tags escape-characters, shell Leave a comment

locate vs find: usage, pros and cons of each other

August 11, 2022 by Magenaut

In Linux and Unix systems there are two common search commands: locate and find.

Categories Q&A, Unix & Linux Tags files, find, locate, search Leave a comment

Location to place systemd service EnvironmentFile when creating debian package

August 11, 2022 by Magenaut

I am currently rewriting upstart jobs to use systemd and I wanted to know:

Categories Q&A, Unix & Linux Tags environment-variables, files, systemd Leave a comment

In Linux, is “write” permission equivalent to “execute” for directories?

August 11, 2022 by Magenaut

The execute permission makes sense for files (which include scripts etc.), but when it comes to directories, the write (w) permission works the same way as execute (x), right?

Categories Q&A, Unix & Linux Tags directory, permissions Leave a comment
Older posts
Newer posts
← Previous Page1 … Page9 Page10 Page11 … 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