LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-11-2018, 06:58 AM   #1
raviprkash
LQ Newbie
 
Registered: Jul 2018
Posts: 1

Rep: Reputation: Disabled
Linux troubleshooting commands


Hello everyone!
I am new baby in Linux & need some troubleshooting commands as I am preparing for my AWS Interview & Linux is main part which attracts lots of questions.Hope to get some good responses.
 
Old 07-11-2018, 07:11 AM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,636

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by raviprkash View Post
Hello everyone!
I am new baby in Linux & need some troubleshooting commands as I am preparing for my AWS Interview & Linux is main part which attracts lots of questions.Hope to get some good responses.
Happy to give you some answers, as soon as you ask questions. We can help with specific things, but 'troubleshooting commands' is FAR too vague and broad for anyone to even guess at. And add to that, an interviewer can as ANYTHING they want, and accept ANY answer they want. No way to know, except for you to actually know the subject of the job you're interviewing for. If you have the skill and qualifications, you should be all set.

If not, there is nothing here that will do you any good, to be honest. Because even IF we knew the questions they were going to ask, and gave you all the answers...you would not be able to actually do the job after you're hired, would you? Take an honest look at your skills and compare them against the job listing...the worst thing you can do is to get a job you're not qualified for.
 
1 members found this post helpful.
Old 07-11-2018, 08:06 AM   #3
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,842

Rep: Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308
I would rather say, there is no such thing "troubleshooting commands". There are commands available on linux and they can be used to develop something, calculate something, executing/drawing/whatever and also for troubleshooting.
 
1 members found this post helpful.
Old 07-12-2018, 07:44 AM   #4
onebuck
Moderator
 
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: SlackwareŽ
Posts: 13,925
Blog Entries: 44

Rep: Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159
Member response

Hi,

Welcome to LQ!

Troubleshooting can be considered an art. You first need to identify the problem and that can be done using logs in '/var/log' or even 'dmesg' to hopefully indicate the issue. If diagnosing a network issue/problem I would likely use the commands; ifconfig, iwconfig and route to certify the setup is correct. You can use 'man command' to get useful information. Your techniques for such issues will be derived from experience to allow you to form proper procedures. If for example you are using wired inet then I would check to make sure the driver is correct for the device from 'lspci' information. If that is correct then I would ping from command line a known location using the proper information. If you get errors then I would then ping the IP of the named location, if that checks OK then my suspicions would be faults with the 'nameserver'. Check to be sure the 'nameserver' is functional with proper IP. If not then check the routing table by using 'route -n' command.

But you must be aware that most issues are from a previous operating hardware can turn out to be a hardware fault. If so then proper hardware diagnostics can be performed on the device in question. These diagnostics are generally provided by the device manufacture.

I use some of the following to aid in diagnosis;
Quote:
From Tools, Recovery, Diagnostic, Emergency

-- Memory:
memtest86 <- 'Memtest-86 is a very thorough stand-alone memory test for x86 and Pentium systems (and compatibles). It currently does 11 tests to fully determine whether you have faulty RAM or not.'
memtest86+ <- 'memory tester which is based on memtest86 v3.0, and provides an up-to-date version of this useful tool, which aims to be as reliable as the original. It has been fixed to work on AMD64 systems, and also properly detects all current CPUs and motherboard chipsets. The project supports ECC polling for AMD64, i875P, and E7205, and displays some useful settings for the most popular chipsets'
Recovery & Diagnostic:
Howto Reboot or halt Linux system in emergency <- 'This is quite useful when Linux based system is not available after boot or after a X server crashed ( svgalib program crashes) or no display on screen.' + Good read
Slax Downloads <- LiveCD, useful recovery tool - Your Pocket OS + Slax FTP
(R)ecovery (I)s (P)ossible <- RIP SlackwareŽ Linux rescue system
UBCD Ultimate Boot CD <- 'UBCD allows users to run floppy-based diagnostic tools from most CDROM drives on Intel-compatible machines, no operating system required. The cd includes many diagnostic utilities.'
TRK <- Trinity Rescue Kit + 'Aims specifically at recovery and repair operations on Windows machines, but is equally usable for Linux recovery issues.'
Knoppix STD 0.1 <- Security & Recovery Tool + Knoppix STD description
SystemRescueCd <- 'is a Linux system on a bootable CD-ROM for repairing your system and recovering your data after a crash. It aims to provide an easy way to carry out admin tasks on your computer, such as creating and editing the partitions of the hard disk. It contains a lot of system utilities (parted, partimage, fstools, ...) and basic tools (editors, midnight commander, network tools).' + 'Online-Manual
TestDisk <- 'tool to check and undelete partition, supports reiserfs, ntfs, fat32, ext2/3 and others' + Above Livecds contain TestDisk + TestDisk Wikipedia + wiki + Data Recovery using TestDisk
PhotoRec, Digital Picture & File Recovery <- 'PhotoRec is file data recovery software designed to recover lost files including video, documents and archives from Hard Disks and CDRom and lost pictures (thus, its 'Photo Recovery' name) from digital camera memory. PhotoRec ignores the filesystem and goes after the underlying data, so it will still work even if your media's filesystem has been severely damaged or re-formatted'+ After Using PhotoRec + PhotoRec Wiki
Windows Vista Recovery Disc Download<- 'Windows Vista Recovery Disc Download ' + 'If you're like most PC users, you probably got Windows Vista with a new PC or laptop. And if you're like 99% of the population, you get your new machines from one of the major manufacturers. Dell, Acer, HP, Toshiba, Lenovo, they all have one thing in common: they don't give you a real Windows Vista installation disc with your purchase. Instead, they bundle what they call a "recovery disc" (that's if you're lucky - otherwise you'll have a recovery partition instead) with your machine and leave it at that.'
Do Everything Boot Disks <- 'OlderGeeks.com Free Software Downloads' + 'Loads of diagnostics & other media' + 'Not just for old geeks '
Remember that experience will always help you to form a diagnosis. By learning to ID the problem then break things down to the problem area to scope into a point to start testing. Thus allowing the repair either by tweaking or replacing the faulty hardware.
Quote:
"Knowledge is of two kinds. We Know a subject ourselves, or we know where we can find information upon it."- Samuel Johnson
Quote:
Just a few more links to aid you to gaining some understanding. Sure some may seem beyond a newbie but you must start somewhere;


Linux Documentation Project
Rute Tutorial & Exposition
Linux Command Guide
Utimate Linux Newbie Guide
LinuxSelfHelp
Bash Beginners Guide
Bash Reference Manual
Advanced Bash-Scripting Guide
Linux Home Networking

The above links and others can be found at '
Slackware-Links'. More than just SlackwareŽ links!
Hope this helps.
Have fun & enjoy!
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
USB Low Level commands (embedded Linux, terminal commands) JonCombat Linux - Newbie 2 01-05-2013 02:34 PM
troubleshooting commands melanie_pfefer Linux - Enterprise 1 04-07-2008 03:38 PM
Help with Troubleshooting Commands dms.prasad Linux - Newbie 1 02-05-2008 06:27 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:30 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration