know right command
i write a command:
ls how can i check this command is right? plz help me |
You can check more about the command details by entering man command Eg. man ls. You will see the details of that command and related options about the same.
For learning basic commands visit linuxcommand.org |
I second the suggestion by Gunjo: the Linux Command Line is a good resource for learning. Moreover you may download the free PDF to have it at hand when you're working off-line.
Regarding your practice with the command line, indeed the man pages are a valid resource (especially as a reminder of the long list of options available to some commands, like ls). You have to pay more attention to those commands that act on files, like rm (potentially very dangerous for obvious reasons), mv, cp and so on. A good practice would be to put an echo in front of the command and review the actual command line before executing it, especially when you use wild cards. Example: Code:
$ echo rm *.png Code:
$ rm *.png Finally, I suggest to carefully read all the error messages you get. In the majority of the cases they reveal what the error is and may give you a clue to what is the right thing to do. |
Quote:
|
All times are GMT -5. The time now is 02:37 AM. |