Home » Linux Basics

Linux Basics

Basic Linux Commands (Cheat Sheet)

Here are many common Linux commands that will be helpful to you, if you ever even use the command line interface in Linux. Most average users just use the graphical user interface instead which usually has many tools and front-ends to Linux common commands. This Linux tutorial on command commands will help even the average user in case X server …

Read More »

Bash Scripting Basics: Part 2 – Statements and variables

Now that we know how to create a very basic script and run them its time to get started on learning how statements and variables work. Every language has itsown way of using statements and variables, they might look slightly different when comparing one language to another, but they all have the same goal in mind. That makes bash scripting the ideal …

Read More »

5 Basic Linux SSH Client Commands

Let us review the following 5 basic command line usage of the ssh client. Identify SSH client version Login to remote host Transfer Files to/from remote host Debug SSH client connection SSH escape character usage: (Toggle SSH session, SSH session statistics etc.) 1. SSH Client Version: Sometimes it may be necessary to identify the SSH client that you are currently …

Read More »

HowTo: Linux List Disk Partitions Command

How do I list all hard disk partitions under Linux operating systems? Usually, your hard disk drive divided into one or more logical disks called partitions. This division is described in the partition table found in sector 0 of the hard disk. The device is usually /dev/sda, /dev/sdb or so. A device name refers to the entire disk and the …

Read More »

Linux / UNIX – Display the permissions of a file

Q. How do I list or display the permission of a file using ssh? I don’t have GUI installed on a remote Linux computer. A.You need to use ls command with -l option. File access permissions are displayed in the first column of the output, after the character for file type. ls command List information about the FILEs. If no argument …

Read More »

Backup and Restore MySQL Database Using mysqldump

mysqldump is an effective tool to backup MySQL database. It creates a *.sql file withDROP table, CREATE table and INSERT intosql-statements of the source database. To restore the database,  execute the *.sql file on destination database. Using mysqldump, you can backup a local database and restore it on a remote database at the same time, using a single command. In …

Read More »

6 Linux Crontab Command Examples

Crontab command manages the cron table that is used by the cron daemon to execute the cron jobs. This article explains the various command line options of the crontab command.   1. Tweaking Other Users Crontab using Option -u -u stands for user. This should be followed by a valid username in the system. -u option alone doesn’t do anything. …

Read More »