Powered by Blogger.

DO YOU WANT MONEY DAILY


EASY TO EARN DAILY 25$ TO 35$.FOR MORE DETAILS
CALL +919487747807

RSS FEED

Total Pageviews

Blog Archive

Showing posts with label System. Show all posts
Showing posts with label System. Show all posts

Friday, 2 March 2012

Knowing Your Linux System Via the Command Line

By Adrien | February 23, 2012 | 6 Comments

system_command_line-topEvery Linux user will tell you the same thing: know your computer. Mine always works not because there are no bugs, but because I know enough to identify their sources every time and correct them. And one of the best ways to monitor your system is through the command line. There are some great GUI for this, but the command line has the advantage of working on every computer, and it can easily be put into a script.

I propose to you five great commands for:

Knowing your kernelFinding hidden processesListing running modulesChecking disk usageLocating binaries and configuration files1. Knowing your kernel

The kernel is the core of your Linux system. It is frequently updated, and knowing its version may be important for compatibility reasons. Certain programs may require a certain version in order to work properly. It may also be important for some peripherals and modules. As an example, my Ubuntu is based on the official kernel 3.0.0. So far, the latest version is 3.2.5.

To know exactly what kernel you are using, its version, and your computer architecture, use the command:

uname -mrs

system_command_line-uname_mrs

With this example, we can clearly see that I am using the official kernel, version 3.0.0. The i686 stands for my computer architecture. Here it means that I am using a 32-bit computer. On the other hand, x86_64 would have indicated a 64-bit architecture.

2. Finding hidden processes

To know what processes are currently running on your machine, most people would recommend the command “top“. Joshua wrote a very good article about it last year at Linux Running Too Slow? Here’s How to Find the Cause. Personally, I find this command very useful, and as Joshua explains, it can even be used to monitor the RAM usage.

However, I am sometimes too lazy to search in the list provided by “top“, and if I already know the name of the program running, I recommend the combination:

ps aux | grep [name of the program]

This will have the effect of listing all the current processes, even the smallest ones that will not be picked up immediately by “top“, and then filtering them according to your keywords.

system_command_line-ps_aux_grep

This method will instantly give you the name of the user responsible for this process, the PID number, the CPU usage percentage, the memory usage, the name of the process, etc.

As a side note, if you don’t know how to kill a running process:

kill [PID number]

OR

killall [name of the process]3. Listing running modules

Modules appeared in version 2.0 of the Linux kernel. They are very useful, and you can consider them as drivers that you can load and remove from the memory. As an example, if you are using a laptop, you probably have a WiFi card. The corresponding modules for that card are probably loaded automatically at start up. If you want to save some battery, you may want to stop the card when you are not using the Internet. Removing the corresponding driver from the memory will then give you a little bit more memory (and you will also be sure that your card is disabled).

But first you need to know which modules are currently running. The command for that is

lsmod

This command is simply the combination of “ls” for listing files in a directory and “mod ” for module (I know, what a surprise).

system_command_line-lsmod

As a complement to your knowledge, you can add modules with the command

modprobe [name of the module]

and remove them via

rmmod [name of the module]

These two commands have to be launched by a super-user.

4. Checking disk usage

Keeping an eye on your system’s volumes can save you a lot of trouble. You may want to be sure that there is always enough room in /root, and remember to periodically clean your /tmp. For that purpose, there are two great commands:

lsblk

and

df -h

lsblk displays a tree representation of the partitions of your computer. It also gives you some useful information about the size of these partitions, their type, and their mountpoint.

system_command_line-lsblk

However, even if lsblk is more visual, I still prefer to use df -h. The latter gives you more information about the remaining space, the size of the partitions, and the percentage of memory in use.

system_command_line-dfh

You may have noticed that the command df alone will give you the size in bytes, which might be very hard to interpret. The option -h stands for human readable and gives you the amount of data in gigabytes, megabytes, or whatever is the easiest for a human to understand.

5. Locating binaries and configuration files

One of the first things that confused me when I left Windows a few years ago was that the file system was completely different on Linux. There is no such thing as Program Files, or a single directory for all the configuration files. But it may be very useful to know where these binaries are. For that purpose, the command:

whereis

is among the best. Similarly to

whoami

which gives you the name of the current user, or

whatis

which explains a command quickly, whereis can locate binaries, manual entries, and various configuration files. Its syntax is also very simple:

whereis [name]

system_command_line-whereis

In the example above, I asked where Firefox was, and the command returned the location for its binary and various directories, as well as the manual page.

But one of the greatest strengths of whereis is its ability to locate standalone configuration files. Here is another example, where I was searching for rc configuration files:

system_command_line-whereis_config

Such options can become very useful, especially if you are not using Ubuntu but another distribution like Archlinux which requires a serious amount of time to edit these files.

Conclusion

With these commands in your pocket, you will be able to see a little more of what is going on in your system. If you still prefer to have a GUI for that, I would still recommend things like Baobab for the files and Gnome System Monitor in general.

Are you using other commands? Other GUIs? Let us know in the comments.



Print this pageSave as PDF

Adrien is a young but passionate Linux aficionado. Command line, encryption, obscure distributions... you name it, he tried it. Always improving his system, he encountered multiple tricks and hacks and is ready to share them. Best things in the world? Math, computers and peanut butter!4 Must Have Browser Addons To Protect Your Online PrivacyRandom PostSchedule Your Emails to Send Later With RightInbox Alaric

Nice post…I didn’t know about some of these.

http://www.tahutek.net/ Damar Riyadi

Great post! Thanks for the info :)

Anonymous

Adrien, when I attempt to run «lsblk» on my 64-bit Ubuntu Natty box, I get the following :

mhenriday@mhenriday-GA-990FXA-UD3:~$ lsblk
Kommandot “lsblk” hittades inte. [The command "lsblk" was not found.] Menade du [Did you mean]:
 Kommandot “lslk” från paketet “lslk” (universe) [The command "lslk" from the "lslk" package (universe)]

which, of course, is another thing entirely. Any idea why I’m getting this response ?…

Henri

Adrien

Hello Henri,
I tried the same thing on an Ubuntu 11.04 in 64-bit and I got the same error message.
However, there was no problem on a version 11.10. lsblk is part of the util-linux package and as you can see, this package is present on 11.04:
http://manpages.ubuntu.com/manpages/precise/en/man8/lsblk.8.html
http://packages.ubuntu.com/natty/util-linux
I searched a little and so far I can guess that it is related to the Natty. lsblk seems only to work on 11.10 and higher.
Strange but you still have df -h that I recommend.
Adrien

Mr. M2M

hi, Adrien. Good post,. We re using Openwrt as the basis for a new product and would welcome any comment as to what commands ar eparticularly useful in that type of distribution? 

Adrien

Hello Mr. M2M.
To be perfectly frank, I know very little about Openwrt. But as far as I understand, it can really depend on the type of product that you want. Without any specifications, I can assume that your product will be closely linked to routers and other devices related to the internet. In that case, useful commands can be for firewall, like Iptable, or network scan, like iwlist scan. You can also think of ssh and scp for file tranfers. Finally, I know that a main command for Openwrt is uci, for Unified Configuration Interface. It is responsible for making changes to the filesystem located under/etc/config/.
I hope this helped you at least a little.

Advertise hereRecommendationsTake Our PollFollow Us On Facebook About Make Tech Easier

Make Tech Easier is a tutorial blog to help you solve your daily technology woes. One of the top 100 Info Tech blog in Technorati, Make Tech Easier is the place to go for hardware and software tutorials, reviews, tips and tricks.

The topics we covered here include Windows, Linux, Mac, iPhone, Android, Google, Firefox and many other tech related stuff. We do what we believe: Uncomplicating the complicated, making life easier!

Get Connected With Us


HomeAboutAdvertiseJobsPrivacyRSS Feed Terms© 2012 Make Tech Easier. All rights reserved Quantcast

Tuesday, 24 January 2012

Performing Data Recovery on any Operating System

Different people have different computers and different operating systems. They may have Mac, Linux, Novell, and the most common, Windows platform. Not only that, different people have different makes of hard drive (Seagate, IBM, Maxtor, Connor, Samsung, Fujitsu, Quantum, Toshiba, Western Digital, Hitachi), different interfaces (SCSI, ATA, PATA), different kinds of files (image files, audio files, business critical files, database files, presentation files, and so on). Another difference that is highly notable is the file system that is used on different systems. They may have FAT, NTFS, HFS, HFS+, HFS Wrapper, Ext2, Ext3, Ext4, NSS, NWFS, and many more. Despite so many differences, there is one that that is common across kinds of platforms, interfaces, hard drive makes, and file systems. It is the risk for data loss, which calls for Windows Data Recovery measures.


Data could have been lost owing to any reason, accidental deletion or formatting of the drive, complexity in configuration, corruption caused by deadly software, power surges, inappropriate backups, incorrect usage of software, and many other reasons, but it is recoverable.


When the data seems to have been deleted, the actual files are still present on the hard drive. It is simply the reference information that is modified, for those files. Due to this, the space occupied by the deleted files is marked as empty space, and ready for writing data. But unless that space is completely written over, by other information, the original files can be easily recovered. Owing to this, the partition that contains important informations must not be used. Even leaving the system on, with no activity from our side, allows the system to update or write some tiny files (which it does automatically), thus increasing the probability of deleted data being overwritten, thereby reducing the chances of disk data recovery. So, one should immediately stop using the hard drive, shut down the machine, and avoid restarting it, because restarting generates files, which may lead to overwriting of data. To recover data, the most ideal way is by connecting the affected drive, to another drive which is healthy and has a reliable third party Hard Disk Recovery Software Free Download installed.



For all recovery needs, Stellar Information Systems Ltd., has a good number of read-only software. With a number of features, including detailed documentation, a simple yet intuitive graphical user interface, a sizable number of recovery options, all its hard disk data recovery software.



Related articles by Zemanta (articlesalley.com) Enhanced by Zemanta

Posted byData Recovery Servicesat3:09 AMLabels:disk data recovery,disk partition recovery,hard disk recovery software free download,hard disk recovery tools,widnows partition recovery,windows data recovery,windows disk recovery0comments: Post a Comment

Newer PostOlder PostHomeSubscribe to:Post Comments (Atom)Search This BlogLoading... #uds-searchControl .gs-result .gs-title, #uds-searchControl .gs-result .gs-title *, #uds-searchControl .gsc-results .gsc-trailing-more-results, #uds-searchControl .gsc-results .gsc-trailing-more-results * { color:#669922; } #uds-searchControl .gs-result .gs-title a:visited, #uds-searchControl .gs-result .gs-title a:visited * { color:#669922; } #uds-searchControl .gs-relativePublishedDate, #uds-searchControl .gs-publishedDate { color: #555544; } #uds-searchControl .gs-result a.gs-visibleUrl, #uds-searchControl .gs-result .gs-visibleUrl { color: #669922; } #uds-searchControl .gsc-results { border-color: #555544; background-color: #ffffff; } #uds-searchControl .gsc-tabhActive { border-color: #555544; border-top-color: #555544; background-color: #ffffff; color: #555544; } #uds-searchControl .gsc-tabhInactive { border-color: #555544; background-color: transparent; color: #669922; } #uds-searchClearResults { border-color: #555544; } #uds-searchClearResults:hover { border-color: #555544; } #uds-searchControl .gsc-cursor-page { color: #669922; } #uds-searchControl .gsc-cursor-current-page { color: #555544; } Stellar Fan PageBury Shane's Hub more » HubPages Userful LinksData Recovery SoftwarePartition Recovery Tools | Partition Recovery SoftwareUndeletePhoto Recovery | Photo Recovery SoftwareHard Drive Recovery | Hard Drive Data RecoveryData RecoveryData Recovery ServicesWindows Vista Data RecoveryFree Download Hard Disk Recovery SoftwareMy Blog ListRecover Email Software1 day agoWindows Data Recovery Help | Windows Partition Recovery Software BlogProven Steps to restore the corrupted windows with MSDaRT2 days agoHard Drive Data Recovery ToolsRevolutionary iPhones :Galaxy Nexus vs. iPhone 4S1 month agoRecover DatabaseHow to resolve error “msg 823, level 24, state 2, line 1”4 months agoWindows Vista Data RecoveryStellar releases QuickBooks Recovery 2.0 with 2011 support and more recovery features10 months agoWindows Photo Recovery BlogHow to Recover Accidentally Deleted MAC Photos1 year agoipod Data Recovery FreewareiPod corruption: Causes and recovery steps1 year agoFollowersShare|Blog Archive▼ 2010(32) ►  October(1)Tips to Recover Damaged Files from Dynamic Disk ►  September(5)Storage Media Used for the Data BackupCloning Ensures Data Backup Even When the Drive is...Performing Disk Recovery when Windows XP Refuses t...Hard drive failure: A lurking threatUse Disk Recovery Utility When a Damaged Boot.ini ...▼ August(7)Recover Your Lost Hard Drive Data Irrespective of ...Recover Your Disk Data using Powerful ToolsLost data from Hard Disk? Opt for Disk Recovery So...Hard Disk Data Recovery Software ReviewImportance of Disk İmages and Data RecoveryImportance of Disk İmages and Data Recovery ►  July(4)Computer Hard Disk Data RecoveryWhat is Hard Disk Recovery? - A Brief Introduction...Resolving “Windows has recovered from and unexpect...How To- Fix “Error loading operating system” Error... ►  March(8)Hard Disk Data Recovery Still an Important AssetDisk Recovery Questions & AnswersRecover Hard Disk Data SolutionsHard Disk Data Recovery Common Fault AnalysisHow To- Fix “Error loading operating system” Error...What Are the Common Faults in Hard Disk Drive?Windows 7 Disk Corruption Issues Post Attempting t...Hard Disk Data Recovery Experts Helping the Detect... ►  February(7)Windows Recovery Disk - A Smarter MethodHard Disk Data Recovery - How to Restore a Hard Dr...Hard Disk Failure and Data RecoveryDisk Data Recovery: Is Your Business At Risk?Disk Killer" (Boot Sector Virus) Infection and Dat...Data Recovery on Failed Hard DiskHard Disk Data Recovery ServicesVisitor Statsfree countersTrack Rss Visit blogadda.com to discover Indian blogsFluctu8 Podcast Directory My Podcast Alley feed!Subscribe To My PodcastSoftware Blogs - BlogCatalog Blog Directory 

Thursday, 1 September 2011

Symbian Anna-Nokia's refreshed Symbian^3 operating system Update

With the announcement of the Nokia E6 and X7 phones, Nokia also introduced the world to the refreshed Symbian^3 operating system – Symbian Anna. Previously referred to as PR2 by the company, the update brings up to 50 enhancements to the OS, and, in Nokia’s
own words – its purpose is “renewing Symbian smartphones.”
The Symbian Anna update will be available in “coming months” for owners of current Symbian^3 phones, i.e., the Nokia N8, C7, C6-01 and E7. New features of the OS include:


New icons: Giving Symbian a new look does go a long way
Improved text input: Portrait QWERTY mode, split-screen typing
Improved browser: Version 7.3 of the native Symbian browser has much better performance, and, also brings numerous touch and interface improvements, from the URL entry bar, integrated search/address field, to the always visible toolbar buttons.
Email and IM enhancements: Microsoft Communicator Mobile support, as well as email enhancements like full meeting request support and hardware-accelerated device encryption
Improved Photo Gallery interface: Landscape and portrait interfaces have been improved for usability
Enhanced Ovi Maps: Version 3.06 of Ovi Maps brings smart search, Facebook/Foursquare/Twitter check-ins, location-sharing via email and SMS (including with non-Nokia users), updatable/downloadable maps via Wi-Fi, and public transport networks
Enhanced Ovi Store: Version v2.06xx brings improved search, including auto-complete, spell-checking and Internet search engine optimization and error fixes; increased file size limits for downloading over WLAN
Enhanced Social: Version 1.3 brings status updates in contact card, ability to retweet and view follower list in Twitter, higher resolution image uploads, ability to add caption to images
Enhanced Ovi Suite: Version 3.x brings improved device software update features, as well as the ability to download free street maps, new music and mobile apps. Device backup has also been improved, as has Ovi Sync.
Developers would be interested in knowing that Symbian Anna supports the following frameworks – Flashlite 4, Java Runtime 2.2, Qt Mobility 1.1, and Qt4.7


Monday, 11 July 2011

System randomly crashing, rebooting, freezing?



Is your system randomly crashing, rebooting, freezing, etc? Then here are the right steps to resolve the issue:

1. Consider the make & model of your computer system. A cheap, generic or underspecified computer system can be the cause of many stability-related issues or even damage other components.
2. Have you tried running Memtest86+ overnight? Download it, burn it as a CD, and boot to it. It'll automatically start testing your RAM. Even one memory error is too much and will cause system instability or even data corruption. This could indicate faulty memory, voltage irregularities, incorrect timings, overheating, or even a problem with the CPU or motherboard.

3. Capacitors, or caps for short, are like small batteries. They can also fail in the same ways; swelling, leaking out of the top or bottom, or even exploding in severe cases. This can cause voltage irregularities and system instability. Unless you are already skilled at electrical repair, it's almost always best to just replace the entire component.

Labels

Design by araba-cı | MoneyGenerator Blogger Template by GosuBlogger