how to get hardware information on terminal

Hardware information can be quite difficult to obtain for certain components of the system. Nonetheless, having the knowledge about what hardware your computer has can be essential in avoiding system crashes by verifying minimum system requirements for games, heavy applications and the like. dmidecode is a tool that provides a description of the system’s hardware, along with other handy information such as firmware details and serial numbers. It is often the case that such information is required for obtaining or updating associated hardware and software for a computers peripheral device.

To extract details system information, open a Terminal from Applications Accessories and enter the following command:

This will display detailed system information within the terminal. Simply copy and paste the information to a word processor or text editor (optionally) to get an elaborate overview of your system.

Terminal

The available information includes the following:

BIOS information, Vendor, release date, runtime size, ROM size, ISA, PNP, PCI, AMP, ESCD, CD boot, EDD, serial service, printer service, ACPI, AGP, USB (legacy), support information, serial numbers and much more.

The information obtained from dmidecode is so detailed that it might take you up to 20-25 seconds just to scroll down the terminal window, before you reach the end of the available content.

Ways To Search For Files Using The Terminal

Today we will look at some of the common ways to search for files in Linux using the Terminal.

1) find : To search for files on the command line you can use the command “find”. The following is syntax for the “find” command:

find path criteria action

“path” – The section of the files system to search (the specific directories and all the sub directories). If nothing is specified the file system below the current directory is used.

“criteria” – The file properties.

“action” – Options that influence conditions or control the search as a whole, ie,
“–print”

 

 

2007-11-22-153941_1280x800_scrot

 

2) locate : The command “locate” is an alternative to the command “find -name”. The command find must search through the selected part of the file system, a process that can be quite slow. On the other hand, locate searches through a database previously created for this purpose (/var/lib/locatedb), making it much faster. The database is automatically created and updated daily. But change made after the update has been performed are not taken into account by locate, unless the database is updated manually using the command updatedb.

 

2007-11-22-154054_1280x800_scrot

 

3) whereis : The command “whereis” returns the binaries (option -b), manual pages (option -m), and the source code (option -s) of the specific command. If no options is used all the information is returned, if the information is available. This command is faster than “find” but is less thorough.

2007-11-22-154226_1280x800_scrot

 

4) which : The “which” command searches all paths listed in the variable PATH for the specific command and returns the full path of the command. the command is specifically useful if several version of a command exist in different directories and you want to know which version is executed when entered without specifying a path.

2007-11-22-154254_1280x800_scrot

 

5) type : The “type” command can be used to find out what kind of command is executed when command is entered – a shell built in command or an external command. The option -a delivers all instances of a command bearing this name in the file system.

2007-11-22-154354_1280x800_scrot

Searching For and Inside Files (find, grep)

The command find is used to find files with various attributes. It has many options. This makes it somewhat awkward for just searching for a file by name. For example, the command

finds all the files in the current directory and any directories below that have a name which ends in .tex and then prints the result of the search at the terminal.

The program grep looks inside files for specified text. For example,

will search the file paper.tex for any occurrences of the text Diophantine” and then then print those lines at the terminal. If you are searching in more than one file as in grep Diophantine *.tex it will print the name of the file in which the line was found.

 

How To Search Inside Files Via The Terminal in Linux

find ./ -name “*.ext” -print | xargs grep “keyword”

In the command given above, you have to change “.ext” with the file extension you are going to search inside, then replace “keyword” with text you want to search.

Here is an example:

find ./ -name “*.php” -print | xargs grep “

–> This command will search inside the current folder all PHP files for this code: “”.

Here is another example:

find ./ -name “*.txt” -print | xargs grep “How to unlock”

–> This command will search all text files under the current folder for this keyword: “How to unlock“.

great programs for terminal linux

cmus
cmus is a music player that I admire the most when it comes to command-line because it’s really powerful and has a lot of nice features. It is built with ncurses and therefore providing a text-user interface. cmus is indeed feature-rich, with several view modes and Last.fm song submission support via scripts. It supports Vi-like commands and auto-completion with Tab too. Recently I wrote a full guide on how to use cmus, you can read it here.
Homepage


finch
Finch comes bundled with Pidgin, the popular IM client. Finch offers the same functionality that Pidgin offers, only that it does it in a terminal by using the ncurses library. It supports IM protocols like Yahoo, Google Talk, XMPP (Facebook), WLM (Windows Live Messenger) and more. A while ago I put up a detailed guide to Finch, which you can read here.
Homepage

htop
htop is an interactive process viewer tool using ncurses which has the great benefit that it allows to scroll up and down the list of processes, and it also uses graphs and colors. I think all these make htop a real gem for the Linux user.
Homepage

irssi
Very powerful IRC (Internet Relay Chat) client with an ncurses-based interface, implements multi-server support, can be expanded with Perl scripts, supports themes, DCC chat and every other possible feature IRC servers allow.
Homepage

mc
Midnight Commander is the famous twin-panel file manager for the Linux terminal, also based on ncurses and with lots of features.
Homepage

lynx
lynx is a popular web browser for the terminal. It supports protocols like HTTP, FTP or Gopher.
Homepage

gzip
gzip is a command-line tool for compressing and uncompressing files. All the files that end in a .tar.gz extension are archived with tar and compressed with gzip.
Homepage

bzip2
Same as gzip, bzip2 is a data compressor which takes a longer time to compress and uncompress files, but it also provides a more efficient compression algorithm which results in smaller files.
Homepage

tar
This tool is used to create archived files, and will also work in conjunction with gzip or bzip2. The command to compress a file or folder to gzip is (what follows after # is a comment):

The c argument means compress, the z specifies the type of file to create (gzip file in this case), and f specifies the output file name. The command to uncompress a .tar.gz file:

This will extract the contents of input_file.tar.gz to the current working directory. Here are the commands for bzip2:

Homepage

aaxine
aaxine is a video player for console based on xine-lib multimedia player, using ASCII characters for video output. In Ubuntu it is provided by the xine-console package.
Homepage


…it’s Big Buck Bunny by the way

aview
This tool allows to view images as ASCII art. It only supports the following formats, which are either in binary form or ASCII plain text: PNM, PGM, PBM, PPM. It also supports FLI and FLC video formats.
Homepage

mencoder
mencoder is a powerful video encoder and decoder included in MPlayer and can convert between various video files.
Homepage

ffmpeg
Using libavcodec, ffmpeg is yet another powerful tool to encode/decode, record and stream video files.
Homepage

convert
Included in ImageMagick, convert is a tool that can convert between image formats, and also apply various effects to images or edit certain aspects, including resizing, cropping, blur or dither effects. convert is also used on web servers for image processing.
Homepage

moc
moc (music on console) is yet another ncurses-based music player for the terminal which plays formats like Ogg Vorbis, FLAC, MP3, WAV or WMA. It also supports themes and searching for files.
Homepage

Anroid 4.0.4 ainol Novo elf 2, Root Files Download- Tested

Rooting Steps:

1).Copy the file and paste it to TF card, then insert the TF card to Ainol Novo 7 Elf II.

2).Keep Ainol Novo 7 Elf II off and don’t connect power adaptor and cable. Press -volume and power buttons at the same time till the tablet is started.

3).Enter recovery update mode.

4).Use volume button to choose “apply update from sdcard” first and then choose “elf2_root.zip”, confirm your chosen with power button.

5).Choose “reboot system now” and restart Ainol Novo 7 Elf II.

elf2_feiyu_mod_ (0608)

* Based on official 0606 (main firmware)/0607 (upgrade kit)
* Deodexed And Zipaligned
* More smooth and optimized version of native Launcher
* Supports power on running etc/init.d script
* Pre-installed programs written to the data area, can be directly uninstalled
* Root And Super User
* Working Flash
* Full Google Play Store (+ other GApps)
* device name changed to GT-I9100 (Galaxy S2 for gaming)
* The browser homepage changed to Ainol official forum
* Several preinstalled utilitys/apps
* The default open ADB debugging, close the touch vibration
* Other optimizations
* Home key to back, long press for home
* Can be set to hide the notification bar, the default is set to auto-hide (change in settings-display)
* Change the recovery keys for volume keys move up and down, home button to confirm

INSTALL
* Please copy all files to the SD card
* Shut down then boot into recovery (Press and Hold the -Volume and power button for four seconds at the same time.)
* Do a full wipe in recovery (media , cache , data)
* Install elf2_feiyu_mod_(0608).zip,
* and then install the elf2_feiyu_mod_(0608)_update
* Reboot (Not sure if you need to wipe cache again before reboot???)
* Starts slow for the first time, please be patient

———————————————————————————————————————————-

if  UPPER Links are  not working,,,

These links are working-  and files tested on ainol novo 7 elf 2,

rar pass : kutayzorlu.com

1 Andorid_4.0.4_F-L_Superstore_Novo7-Elf-II-0626-repack-root-fullmarket-gapps.Firmware.UPDATE-hdmi+USB.part1
2 Andorid_4.0.4_F-L_Superstore_Novo7-Elf-II-0626-repack-root-fullmarket-gapps.Firmware.UPDATE-hdmi+USB.part2
3 Andorid_4.0.4_F-L_Superstore_Novo7-Elf-II-0626-repack-root-fullmarket-gapps.Firmware.UPDATE-hdmi+USB.part3
4 Andorid_4.0.4_F-L_Superstore_Novo7-Elf-II-0626-repack-root-fullmarket-gapps.Firmware.UPDATE-hdmi+USB.part4
5 Andorid_4.0.4_F-L_Superstore_Novo7-Elf-II-0626-repack-root-fullmarket-gapps.Firmware.UPDATE-hdmi+USB.part5
6 Andorid_4.0.4_F-L_Superstore_Novo7-Elf-II-0626-repack-root-fullmarket-gapps.Firmware.UPDATE-hdmi+USB.part6
7 Andorid_4.0.4_F-L_Superstore_Novo7-Elf-II-0626-repack-root-fullmarket-gapps.Firmware.UPDATE-hdmi+USB.part7
8 Andorid_4.0.4_F-L_Superstore_Novo7-Elf-II-0626-repack-root-fullmarket-gapps.Firmware.UPDATE-hdmi+USB.part8

 

 

Another Links,,,
Full Rom
http://www.mediafire…f4gjlp7paavmt5d
http://115.com/file/c25qpgbh#
Update
http://www.mediafire…0z05ruuth8tijct

————————————————————————————————–

Ainol Novo Elf 2 Root

http://www.mediafire…fqt0x8xys2nv1q7
or
http://115.com/file/…x#elf2-root.zip