Posts

Showing posts with the label command

Malicious Linux commands to avoid

Warning: Don't run these commands on your machine. They can erase your valuable data or crash your machine. It is worthwhile to have basic knowledge about malicious commands in Linux.  Don't blindly run the commands instructed in websites or scripts downloaded from the internet. Just verify the contents of the script for any commands that can harm your computer. If you want to know what a command can do use the man pages if you are offline. You can get the information of a command by typing info <command name> in the terminal. Example:  info sudo If you are connected to the internet then type man <command name> in the terminal to get the updated documentation. Example:  man sudo Again, the following commands can heavily damage your OS. These are extremely dangerous and should not be attempted on any computer that has any physical connection to valuable data. 1.   COMMANDS THAT CAN DELETE FILES AND FOLDERS rm -rf / ...

Advancing with the terminal

Advancing with the terminal In the previous post we discussed about the basics of the terminal. In this post I will tell you about advanced commands that can be used in the terminal. System Information Commands: These commands are used to know information about the system.        df :      The df command displays file system usage for all the  mounted partitions. df –h produces a more readable output in Megabytes (M) and Gigabytes (G). [-h means human-readable]. ¨     du :   The du command displays the disk usage for a directory. For more readable output you can use du –sh. ¨     free : The   free command displays the free and used memory in the system. Free –m will give the output in Megabytes which is more readable. ¨     top : The top command   displays information on your Linux system, running processes and system resources, including CPU, RAM & swap usage and total numbe...

Basic commands of Linux

Image
Linux has made a very good progress with the GUI (Graphical User Interface). But the traditional UNIX environment is a command-line interface (CLI) where you type the commands in a terminal. Mostly you can manage to do things using the GUI but if you want to become a power user or make your Linux powerful you must use the command-line. There are many varieties of Linux, but almost all of them use similar commands that can be entered from a command-line interface terminal. Opening a Terminal: To open a terminal in Ubuntu follow these steps: In Unity: Open dash and type terminal OR Dash -> More Apps -> Accessories -> Terminal In Gnome Open the activities and search for terminal OR Applications menu -> Accessories -> Terminal . You can also open a terminal by pressing CTRL+ALT+T keys. Now after opening the terminal let's get familiar with some commands. File & Directory Commands The tilde (~) symbol stands for your home directory. If you are user , then the t...