| |
|
|
|
|
Linux tips and tweaksEssential Terminal commandsLinux's love afair with the command line is legendary and the solution to many problems is to open a Terminal window and type in some obscure commands. When you want to run some utility or program you type in some more commands, and when you need to perform some task, you type in - you guessed it - commands. Windows and OS X both have command prompts, but they aren't used anywhere near as much and many Windows PC and Mac owners have never used the command prompt at all. Not even once. It's a bit of a shock when switching to Linux and you need to know a few basic commands for listing the disk contents, moving around the disk directories and so on. Here are some useful commands to get you started in the Terminal window. To see a list of the files and directories (folders) you type The ls command assumes that you want to list the contents of the current location and you can display some other location on the disk by including the path like this: If you need to change directories, and you often do, then type If you need to delete a file at the Terminal then use You can type a path with the rm command to delete any file or directory anywhere on the disk, but it's a bad idea. Get it wrong and it could do a lot of damage. Always change to the folder containing the item to delete and then type the rm command followed by the file or folder to remove.
|