Posts
How to Change Root Password
If you forget your root password or want to update for some reason, and you have
sudo
right, you can use passwd withsudo
to change the root password.How to Kill Inactive SSH Sessions
Sometimes you have a flaky internet connection and you may have been disconnected from your server a couple of times which resulted in inactive ssh sessions. When you look at details with w command, you see something like the following,
How to Downgrade a Specific Package on Debian
I use jekyll for static site generation. Its latest version requires minimum
ruby 2.4.0
as of now. But Debian 9.11 (stretch
) hasruby 2.3.3
in its repositories, at the time of writing.Scanning For Open Ports
A port is open when there’s a process running on the machine which is listening on that port for incoming requests. For example, default web server open port is HTTP (80) and ssh is SSH (20).
Search Dictionary From Command Line (Part 1)
Do you know that you can search dict.org from command-line? By using curl it’s possible. Also it saves you lots of time when on a remote server which has no user interface than black terminal.
Software Versioning
Introduction
Extended Cp and Mv Commands
All command line geeks know cp and mv commands. Especially while copying/moving large files or many files these commands won’t verbose anything. So you can’t estimate when the job will be finished and watch current progress.
Sending Ping To Each IP on a Subnet - fPing
In order to check a PC is alive, we use ping command. But let’s assume there is a PC in your network which is configured to get IP address automatically from DHCP server. On every boot, there is chance that it’s IP address may be different from previous because of dynamic IP configuration. In order to find it in your subnet, you should ping all IPs to detect alive PCs. Then you can check those PC’s hostnames or open ports to find the PC you want to reach.
Connect To Workstation With Hamachi
Let’s assume you have a workstation (or a pc) at office. For some various reasons, you don’t have VPN ability to your corporate network. But you want to have remote access to your office workstation, by this way you can work remotely. This was my case and I installed a LAN over internet with hamachi, I added office workstation and home laptop to the same network, I connected to my office workstation with ssh and did all my job. So this is how I did it!
subscribe via RSS