Previous Page | Next Page

  1. Agustin's Linux Manual
  2. System Administration
  3. About the Author
  4. Contents
  5. Administration
  6. Terminals
  7. Command Basics
  8. Root Directory
  9. Executing Commands
  10. File specs
  11. File Permission
  12. How permissions are assigned
  13. Change ownership chown
  14. Running multiple commands
  15. Killing Processes
  16. Bash configuration files
  17. VI Editor
  18. Creating path environment
  19. Midnight Commander
  20. Linuxconf Utility
  21. Networking
  22. Domain Name Service DNS
  23. Router and Gateway
  24. Adding Users
  25. User Accounts
  26. Managing Groups
  27. Mounting File System
  28. NFS Mounts
  29. Disk Quotas
  30. Run levels
  31. Linuxconf Control
  32. Mandrake Control Center
  33. Creating a Boot Disk
  34. Switching Boot Mode
  35. Hardware Configurations
  36. Printer Configuration
  37. Installing Printers
  38. Samba Printer
  39. Managing services
  40. Managing Users
  41. Program Scheduler
  42. Software Management
  43. Installing CUPS

Command basics

Do not use the shell as 'root' for everyday tasks…

When you log in as user you are automatically placed inside your home directory /home/user

Look at your command prompt it tells you where you are. The following command demonstrates your profile, your desktop, your document folder, your mail folder and the temp directory.

[agustin@server2 agustin]$ ls
Desktop/ Documents/ mail/ temp/

Try the next command lists everything that is inside the folder Desktop.

[agustin@server2 agustin]$ ls Desktop
befdsr41w_eng_ds.pdf  	xvnc.html	myfolder/
trash/ Home.desktop	Mandrake Expert.desktop Removable media/

That command is also similar as: cd Desktop

[agustin@server2 agustin]$ cd Desktop
[agustin@server2 Desktop]$ls
befdsr41w_eng_ds.pdf  	xvnc.html	myfolder/
trash/ Home.desktop		Mandrake Expert.desktop Removable media/

The next command is: cd.. Takes you one step back.

	[agustin@server2 Desktop]$cd..
	[agustin@server2 agustin]$