In other words, it would do nothing.What's actually happening is the dot represents the "assumed" directory; it's a placeholder, and you can use the dot anywhere in a directory name.

Use it to move around in the hierarchy of your file system. For instance, if your documents folder is named After you change directory, you can change back to the previous working directory by representing it with a dash ("Using a slash at the end of a directory name is optional.

Please keep in mind that all comments are moderated and your email address will NOT be published.
Please leave a comment to start the discussion. If You Appreciate What We Do Here On TecMint, You Should Consider:The material in this site cannot be republished either online or offline, without our permission. Don’t forget to provide us with your valuable feedback in the comments below.TecMint is the fastest growing and most trusted community site for any kind of Linux Articles, Guides and Books on the web. The cd command is used to change the current directory (i.e., the directory in which the user is currently working) in Linux and other Unix-like operating systems.It is similar to the CD and CHDIR commands in MS-DOS.. cd's syntax is cd [option] [directory] The items in square brackets are optional. Use the physical directory structure without following symbolic links. You can press the tab button in order to auto complete the directory name.

In other words, only change into the specified directory if it actually exists as named; symbolic links will not be followed. Directories are treated as files, so you don't need to put it there; but if you do put it there, the system knows for sure you're expecting that file to be a directory.

I’ll be here again with another interesting topic soon. In Linux ‘cd‘ (Change Directory) command is one of the most important and most widely used command for newbies as well as system administrators.For admins on a headless server, ‘cd‘ is the only way to navigate to a directory to check log, execute a program/application/script and for every other task.For newbie it is among those initial commands they make their hands dirty with. In other words, move into the directory which contains the directory which contains the current working directory. This option is the opposite of the All files and directories on your system stem from one main directory: the Any directory contained inside another directory is called a All directories on your file system are subdirectories of the root directory.To change into this directory, and make it our working directory, we would use the command:If the first character of a directory name is a slash, that denotes that the directory path begins in the root directory. Have a question or suggestion? Till then stay tuned and connected to Tecmint. For instance, if we have two directories, Another "useless" command, but one that illustrates the way you can use the double-dot notation, is this one:...which will place us in the directory one level above the subdirectory Your home directory is the directory you're placed in, by default, when you open a new terminal session. cd is among the commands you will use most often on the command line. It enables you to change the working directory from the current directory to the desired directory that you wish to navigate to. All other directories are subdirectories of the root directory.The root directory is represented by a single slash ("To change into the root directory, making it your working directory, use the command:You will not be able to make any changes to the root directory on your system unless you are logged in as The current directory, regardless of which directory it is, is represented by a single dot ("...would change us into the current directory.

to search or browse the thousands of published articles available FREELY to all.If you like what you are reading, please consider buying us a coffee ( or 2 ) as a token of appreciation.How do i remove the cd course its stuck there and i tried everything like it always shows You will go 5 step back of that directory (If Available) or it will show you “/” So, in contrast to the example above, the directory name "To change into this directory, making it our working directory, we would use the command:The root directory is the first directory in your filesystem hierarchy. It changes your working directory. Tecmint: Linux Howtos, Tutorials & Guides © 2020. As soon as popd is fired, it fetch the saved directory location from memory and makes it current working directory.This is our attempt, to make you aware of Linux Workings and executions in least possible words and with as much as user friendliness as it used to be before.That’s all for now. It has a special representation: a ...and we can always access the subdirectories of our home directory by placing the tilde as the first component of the directory name. Pushd and popd are Linux commands in bash and certain other shell which saves current working directory location to memory and bring to the directory from memory as current working directory, respectively as well as changes directory.The above command saves the current location to memory and changes to the requested directory. All Rights Reserved.
It's the directory that holds all your settings, your mail, your default documents and downloads folder, and other personal items. Command cd is used to navigate between directories in Linux. So, the command:In all of these examples, the dot represents "the directory assumed to be there".