Useful Linux Commands-2
Files
| Command | Description |
| ls -la | Lists files l: Use a long listing format a: List all entries including those starting with a dot |
| pwd | Displays working directory |
| rm | is used to delete files. When used recursively, it may be used to delete directories. |
| rm -r | Removes directories and their contents recursively. |
| rm -f | Ignores nonexistent files, and never prompt before removing. |
| rm -rf | forces the directory to delete |
| cp | is makes copies of files and directories. |
| cp -r | Copıes directories recursively. |
| mv | moves, or renames, files and directories on your filesystem. |
| ln -s | Creates a symbolic link |
| touch | is also an easy way to create empty files. |
| cat | reads data from files, and outputs their contents. |
| more | is a filter for paging through text one screen at a time. |
| head | Displays first 10 lines of the file content |
| tail | Displays the last 10 lines of the contents of the file |
| tail -f | Displays the last 10 lines of the contents of the file in real time |
Processes
