Tag: command

strace to find Library Calls

Display library calls strace -f -e open ls >/dev/null

FTP Using Curl

Copy a file to a remote system using FTP with the Curl command… curl -T filename.txt -u username:password ftp://example.cot/filename.txt Original…

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…

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…