Skip to content

Magenaut

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

cd-command

How do I redirect output to cd?

August 8, 2022 by Magenaut

Is it possible to redirect a command’s output to cd? For example, I searched for a directory using locate and got the path to it. Now, instead of writing a cd path, can I redirect the locate output to cd?

Categories Q&A, Unix & Linux Tags cd-command, io-redirection, shell Leave a comment

How do I cd up and down again with symlinks in bash?

August 8, 2022 by Magenaut

Structure:

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

Difference between “cd -” and “cd ~-“

August 7, 2022 by Magenaut

The Bash command

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

How to go to the previous working directory in terminal?

August 7, 2022 by Magenaut

In terminal, how can I define a key to go to the previous directory which I was in when changing directory with the cd command?

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

gnome-terminal: keep track of directory in new tab

August 7, 2022 by Magenaut

I’m on Arch linux, and when I open a new terminal tab, it always goes to $HOME. How can I make it so that when I open a new tab, it opens the shell in the directory I was in previously?

Categories Q&A, Unix & Linux Tags cd-command, gnome-terminal, shell Leave a comment

Changing parent directory (../) with symlinks

August 7, 2022 by Magenaut

I have a symlink

Categories Q&A, Unix & Linux Tags bash, cd-command 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
Newer posts
← Previous Page1 Page2
  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