Archive for the ‘UNIX’ Category

Extract tar files in Linux

Many of beginners dont know how to extract tar files in Linux. What is tar file? TAR actually stands for tape archive. This is a standard format in Unix/Linx. TAR files are the most popular form of archive used on a Unix/Linux system. The extension is .tar.gz or .tar.bz2 Extract tar files in Linux:

ERROR 1045 (28000): Access denied for user ‘root’@’localhost’ (using password: NO)

When we try to login MySQL server by typing mysql, received below error message. root@ubuntu:~# mysql ERROR 1045 (28000): Access denied for user ‘root’@’localhost’ (using password: NO) root@ubuntu:~# mysql -u -r ERROR 1045 (28000): Access denied for user ‘-r’@’localhost’ (using password: NO) root@ubuntu:~# Cause:

How to install MySQL on Linux

In this article, we are going to install MySQL on Ubuntu Linux Distribution. 1) Log on to Ubuntu Server and open Terminal 2) Type the following command in terminal sudo apt-get instal mysql-server

rmdir failed to remove directory not empty

When we try to remove a directory using a command the rmdir command, if we receive a prompt such as “rmdir: ‘dir’: Directory not empty”. This means directory contains, files and folder inside. To remove all files and folder inside directory, we have to use recursive option “rf” with rm command. Note: Be careful about […]

How to get list of users in Linux

The /etc/passwd file is used to keep track of every registered user that has access to a system. Sometimes, we want to know the list of local users. If we want to get list of users in terminal, run below command. cut -d: -f1 /etc/passwd If we want to save this output in file, then […]

Difference between Windows and Unix

Windows Unix It is graphical User Interface It is Command Line Interface This is thread based concept This is processs based concept To boot Windows operating system 12MB RAM is required To boot Unix operating system 2MB RAM is required In Windows if any user process killed, it effects all. In Unix,if any user process […]

Differences between hard link and soft link

What is link Unix: To give a pointer to the source file called as a link. In Unix/Linux there are two types of links 1. Soft link and 2. Hard link. Soft Links Hard Links The inode number for the source file and link file are different Source file and link file has same inode […]

How to find ip address on Linux

This is basic tutorial for unix/linux administrators to findout the ip address of Linux machine/host. Following are the different commands to findout the ip address. 1. Using /sbin/ifconfig

How to create cron jobs

In any operating system, it is possible to create jobs that we want to reoccur. This process known as job scheduling. There are two tools to schedule jobs: 1. at 2. crontab Crontab: Any user can create a cron job. As the root user, we can also have the ability to edit and remove any […]

scp command in linux

SCP: SCP stands for Secure Copy. SCP is used to copy data from one unix/linux sserver to another unix/linux server. SCP uses ssh(secured shell) to transfer the data between the remote hosts. Features of SCP are: Copies files within the same machine. Copies files from local machine to remote machine Copies files from remote machine […]

Powered by k2schools