E-learning module "Linux Basics"
Basics: the Commands pwd, ls, cd
$ pwd
→ print working directory. Show the directory where the user is currently located.$ ls
→ list. List directories and files in a directory.$ cd
→ change directory. Go to another directory.
Examples:
$ pwd
/home/user1
→ The current location within the directory tree.$ ls
Desktop bsp.txt
→ Listing of the content of the current directory.$ cd Desktop
→ Go into the subdirectory Desktop
.$ pwd
/home/user1/Desktop
![]() | The content of this e-learning module is licensed under the Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Germany license (CC BY-NC-SA 3.0 DE). |