In olden days of DOS, we had cd command to switch folders. The case does not seem same like DOS. Please help
Asked
Active
Viewed 309 times
0
-
1Keep in mind that Linux is not DOS, many commands are different, however cd is also the command to change directories in Linux, it should work (see Rakeshs asnwer). – Wouter Dec 21 '13 at 08:46
-
and do not forget: {tab} does auto-complete. – Rinzwind Dec 21 '13 at 09:19
-
And `cd` actually switch folders here too. – Lucio Dec 21 '13 at 18:11
2 Answers
1
If you have a dir named "apps", with templates, static as its contents.
cd apps
will enter you to apps folder.
cd apps/templates
will enter you to templates directory
cd ..
you will reach to the apps dir
cd
you will reach main directory
Rakesh Godhala
- 628
- 1
- 5
- 10
0
you use the cd command , it stands for change directory.
the file system in linux is arranged in a tree beginning at the root or / directory.
One catch to lookout for is that using the cd command is relative to where you are now in the file system , unless you start the path after the cd command with a /
3 handy commands for traversing the filesystem
cd pathorcd /path/pathto change directorypwdto display current directory you are in (present working directory)lsto list the content of you current directory.
Pieter
- 149
- 6