Some useful commands through Linux command line – II

Some useful commands through Linux command line – II

Guys We already seen some command line Linux commands,We discuss some other useful commands.

some-useful-commands-through-linux-command-line-ii

ACPI

acpi(Advanced Configuration and Power Interface) shows information the as battery status or thermal information of the Linux systems.

acpi-tts1

after installing acpi we can use following command.

# acpi -V
No support for device type: power_supply
No support for device type: power_supply
Thermal 0: ok, 60.0 degrees C
Thermal 0: trip point 0 switches to mode critical at temperature 255.0 degrees C
Cooling 0: Processor 0 of 10
Cooling 1: Processor 0 of 10

Google Search in Linux command prompt

root@TTS#Q=”Linux”; GOOG_URL=”http://www.google.com/search?q=”; AGENT=”Mozilla/20.0″; stream=$(curl -A “$AGENT” -skLm 10 “${GOOG_URL}\”${Q/\ /+}\”” | grep -oP ‘\/url\?q=.+?&amp’ | sed ‘s/\/url?q=//;s/&amp//’); echo -e “${stream//\%/\x}”

Note – retype the (“) double quotes as  per your system. then only this command will work.

Output :

It will show Google search link results

sc-commands

AXEL command

Axel is used download a file from FTP or HTTP server through multiple connection, each connection downloads its own part of the file, Axel downloads all the data directly to the destination file, using one single thread. It just saves time at the end because the program doesn’t have to concatenate all the downloaded parts.

Installing axel command

yum install axel*
Loaded plugins: presto, refresh-packagekit
Setting up Install Process
Resolving Dependencies
–> Running transaction check
—> Package axel.i686 0:2.4-4.fc13 set to be updated
–> Finished Dependency Resolution

Dependencies Resolved

================================================================
Package Arch Version Repository Size
================================================================

Installing:
axel i686 2.4-4.fc13 fedora 53 k

Transaction Summary
================================================================

Install 1 Package(s)
Upgrade 0 Package(s)

Total download size: 53 k
Installed size: 111 k
Is this ok [y/N]: y
Downloading Packages:
Setting up and reading Presto delta metadata
Processing delta metadata
Package(s) data still to download: 53 k
axel-2.4-4.fc13.i686.rpm | 53 kB 00:00
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : axel-2.4-4.fc13.i686 1/1

Installed:
axel.i686 0:2.4-4.fc13

Complete!

Eg:-

# axel -n 10 http://www.example.com/file.gz

Initializing download: http://www.example.com/file.gz

WGET Test Results:
virtualbox.org: 1.50 Mb/s
kernel.org HTTP: 1.31 Mb/s
kernel.org FTP: 282.5 Kb/s

AXEL Test Results:
virtualbox.org -n 10: 2.57 Mb/s
kernel.org http -n 10: 2.24 Mb/s
kernel.org 4 ftp mirrors: 561.80 Kb/s

comparison:
virtualbox.org: Increase of 1.08 Mb/s = 72% Increased
kernel.org http: Increase of 962.56 Kb/s = 72% Increased
kernel.org FTP: Increase of 279.30 Kb/s = 99% Increased

 




Leave a Reply

Your email address will not be published. Required fields are marked *