Author: Binny V A

A philosopher programmer who specializes in backend development and stoicism.

Use DD to Create File of any Size

Use the DD command to create a 10 MB (10*1024*1024=10485760 bytes) size file named testfile_10MB dd if=/dev/zero of=testfile_10MB bs=10485760 count=1…

SCP Copy from Remote to Local System

Copy files/folder from a remote server to this system. scp -r binnyva@192.168.0.100:/home/binnyva/folder_to_copy .

Copy Files using SCP

Copy files/folder to a remote server. scp <file> binnyva@192.168.0.100:/home/binnyva/ scp -r <folder> binnyva@192.168.0.100:/home/binnyva/

Executing SQL Query From Command Line

Print out the result of an SQL query directly from the database using the mysql command mysql -u root Project_Tiker…

Using strace

Display system calls made and received by a process strace -c ls >/dev/null

Show Active Network Connections

Show all active network connections and their PID netstat -tup

Find Alsa Version

Find the version of alsa using this command… cat /proc/asound/version Thanks to Sreenath(Hacking With Debian) for this tip.

List of Open Files

Display a list of files opened by processes lsof -p NUMBER

Spell Check a Text File using Aspell

You can use Aspell to spell check of a text document using this command. It must be executed in a…

Stop All Downloads in KTorrent Using Dcop

Stop all downloads in KTorrent using dcop. Can be done from local system or by logging in using ssh from…