Category: Kali

How To Shutdown Linux System?

I am new to Linux and I have installed some Linux distributions. I try to learn bash commands. I can shutdown my computer from Desktop manager easily. But How can I shutdown system from bash without a GUI. There are different ways to shutdown Linux system. Following commands will work most of the distributions like Ubuntu, Debian, Mint, Kali, CentOS,

Continue reading

Install Dnsmasq As Cache Dns Server

We have a lot of computer in our network. Our network speed is not too much. Sometimes especially in mornings our internet connection slows down. How can solve this with some dns related tricks? Dns is one of the mostly used network protocol. It can effect the internet speed. Making some optimizations will develop your internet experience. Caching is to

Continue reading

Bash Infinite Loop Shell Linux

How can write infinite shell that will run forever? May be I need a 5 second sleep between steps. Recently I have a issue with my routing table and I need to remove some route automatically every 5 minutes. I came up with a solution that runs every 4 minutes and clears unwanted routes. While Infinite Loop There are a

Continue reading

Linux Cp or Copy Command

Linux popular command cp is used to copy files and folders. In this tutorial we will look different usage types of cp command. Syntax Syntax of cp command is like below.

Copy We will just copy our source file to the destination file.

We have copied our source file cat into new file cat2

We have copied cat and cat2 files into the test directory Copy File and Give

Continue reading

How To Specify Ssh Keys When Running Shell Command Like Git,Rsync

I have a remote repository which is Git. I want to connect to Git over ssh because there are problems with the firewall rules in our work environment. How can use ssh to connect remotely to Git with specifying ssh keys for this Git operations. Using  ssh-agent ssh-agent will create and temprorary environment where tkey is added with ssh-add command into the shell.

Continue reading

Ubuntu, Debian, Kali Ssh Installation

I want to connect my Linux server securely. Security is important nowadays. OpenSSH is a secure shell for remote connections. OpenSSH is very popular and have very life saver features. Installation Installation of ssh is like below. ssh full package name is Openssh-server which provides daemon, client and auxiliary tools for ssh. Ubuntu, Debian, Mint, Kali:

CentOS, Fedora, RedHat:

Continue reading

Apache Log Files

Apache or with real name httpd provides logs. These logs are very helpful while detecting errors, attacks. There is two type of Apache logs by default. Log resides in following directories. Log Path Apache logs are stored in different paths because of name difference for different distributions. DEB or apt family uses the name apache2 and stores logs as apache2

Continue reading

How To Start, Stop and Get Status of Linux Service With Systemd?

Services are all over the Linux world. Enterprise Linux world turn over services. There are different tools to manage Linux services like Sys-V, upstart, systemd etc. Systemd is gaining popularity in recent times. Fedora, CentOs, RedHat uses systemd for a long time. Ubuntu started to use systemd too. Here we will look into basics of the service management with systemd.

Continue reading
Open

Enjoy this blog? Please spread the word :)