Skip to content

Magenaut

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

cd-command

Do we have more history for cd?

August 11, 2022 by Magenaut

cd - can move to the last visited directory. Can we visit more history other than the last one?

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

Going into a directory linked by a link

August 11, 2022 by Magenaut

When I cd a link, my current path is prefixed with the link’s path, rather than the path of the directory the link links to.
E.g.

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

changing current working dir with a script

August 11, 2022 by Magenaut

I’ve read this question and answer, but it doesn’t quit fit my problem, even tho it’s similar.

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

Everything is a file?

August 10, 2022 by Magenaut

In Linux, every single entity is considered as FILE. If I do vim <cd-Name> then, vim will open the directory content into it’s editor, because, it do not differentiate between file and directories.

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

How do I use pushd and popd commands?

August 10, 2022 by Magenaut

What are the practical uses of both pushd and popd when there is an advantage of using these two commands over cd and cd -?

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

How do you enter a directory that’s name is only a minus?

August 10, 2022 by Magenaut

I downloaded lessn to my webserver and unzipped it.

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

Understanding directory symlinks traversals and the parent directory

August 10, 2022 by Magenaut

Let’s say you have directories /dir1 and /dir2/linked, where the latter is a symlink to the former.

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

Output of which command used for input to cd

August 9, 2022 by Magenaut

I would like to take the output of a which command, and cd to the parent directory. For example, say I have the following:

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

pushd, popd vs cd, cd- in bash and zsh

August 9, 2022 by Magenaut

Is there a difference between the behavior of pushd/popd in bash vs zsh? It seems in zsh cd, cd- behaves exactly the same as pushd/popd (which adds/pops directory automatically when cd) while in bash cd doesn’t affect the dir stack.

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

Trouble with running cd with sudo as another user

August 8, 2022 by Magenaut

I want to run a command on a shell on behalf of another user. The command is as follows:

Categories Q&A, Unix & Linux Tags cd-command, sudo Leave a comment
Older posts
Page1 Page2 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