Quantcast
Channel: Linux Report » Linux Quick Tips
Browsing index pages (30 articles)
↧

Log MySQL Queries

If you want to log MySQL Queries log in to your mysql client and run: mysql> SHOW VARIABLES LIKE "general_log%"; +------------------+-----------------------+ | Variable_name | Value |...

View Article


Check if a Service is Running Using Telnet and How to Quit Telnet Session

Telnet is not used that much anymore. To connect to a managed switch CLI this could be your only options. But then telnet has other use: you can check if a service run on a port on a remote machine....

View Article


Find Out the Version of Your Ubuntu Linux

To find out which version is the Ubuntu Linux installed on your machine you must use the lsb_release command: # lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu...

View Article

Configure Networking in Ubuntu 16.04 Server

One way on some Ubuntu versions was to edit /etc/network/interfaces and add the the configuration of network interface. On Ubuntu 16.04 I’ve don the following setup: # cat /etc/network/interfaces #...

View Article

Rename Multiple Files in Linux

To rename multiple files in Linux run from the command line: for f in *.cc; do mv -- "$f" "${f%.cc}.cpp"; done Previous command will rename all .cc files into .cpp files. Note: It will not work...

View Article


Add an user to Ubuntu Linux from command line

If you want to add an user to your Ubuntu Linux machine here is what you need to do. Login as root (or use sudo) and then run (as root): useradd -d /home/john -m john passwd john usermod -aG sudo john...

View Article

Becoming root on Ubuntu Linux

If you are using Ubuntu Linux you’ve logged in as an user. If you want to become root so you won’t have to input sudo on every command you run, here’s what you need to do: sudo su or sudo su - which is...

View Article

Dealing with “Bad: new password is too simple” issue on Ubuntu Linux

Let’s say you’ve booted with Live Ubuntu CD/DVD and you want to change the password of your user which is called ubuntu on Live Ubuntu CD/DVD. If you run: passwd you might get an error like: You must...

View Article


Installing VirtualBox Guest Additions on Ubuntu Linux Guest

If you want to install VirtualBox Guest Additions on Ubuntu Linux Guest here what you need to do. First go to VirtualBox -> Devices and click on Insert Guest Additions CD Image. From the terminal...

View Article


Fixing: apt-get install mc is not available error on Ubuntu

So you’ve just installed Ubuntu 16.04, you’ve configured networking and it works properly but when you want to install Midnight Commander (or other package) you get an error: apt-get install mc is not...

View Article

Install VirtualBox Guest Aditions on CentOS 7 Linux Guest

If you want to be able to move your mouse cursor outside the VirtualBox CentOS Guest window without pressing a key and also automatically scale CentOS Guest window you need to install VirtualBox Guest...

View Article

Install Mate Desktop on CentOS Linux 7

Let’s say we’ve installed a minimal version of CentOS Linux 7 from minimal cd iso and now we want to install Mate desktop. In order to do that we will need to install the epel repository, then to...

View Article

Find out the ip of your network card in CentOS 7

If you want to see the IP of your network card use the ip command: ip addr show If you’ve installed CentOS from minmal cd image then the ifconfig command is not installed. If you really want the...

View Article


Mount a CD in CentOS 7 Linux

To mount a CD in CentOS 7 Linux run mount: mount /dev/cdrom /mnt

View Article

ifconfig: command not found in CentOS 7 Linux

If you try to run ifconfig command on CentOS Linux 7 and you find out you do not have ifconfig installed then to be able to run it you must install net-tools package: yum install net-tools This will...

View Article


Error: username is not in the sudoers file. This incident will be reported.

If you try to use sudo to run commands with root privileges in Ubuntu Linux and you get the following error message: username is not in the sudoers file. This incident will be reported. then you must...

View Article

Remount a root filesystem with read write options in Ubuntu Linux

Let’s say you’ve entered in Recovery mode and you want to make changes to your config files (for example you want to add a new user or you want to change network config) but your root partition is...

View Article


Install TCPDUMP on CentOS Linux

You might find that tcpdump is not installed by default on CentOS. To install tcpdump run: yum install tcpdump

View Article

Fix “Unable to unmount, device is busy” error

I am trying to unmount a file system mounted with FUSEFS SSHFS but I get errors and I am unable to unmount the resouce: # umount -f /mnt/backup umount2: Device or resource busy   # cat /proc/mounts...

View Article

Umount a File System Mounted via FUSEFS

Let’ say we mounted a resouce using FUSEFS SSHFS. To umount that resource run: fusermount -u /mnt/backup/

View Article
Browsing index pages (30 articles)


Latest Images