LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 01-08-2011, 03:06 PM   #1
fkasmani
Member
 
Registered: Dec 2007
Posts: 178

Rep: Reputation: 17
forgotten a "magic" command


OK, this may seem like a stupid question, but as they say, "the person wearing the shoe knows where it hurts".

Well, I've not been using my Linux PC for the past 5mths and have pretty much forgotten the little linux tricks I used to know.
I just put on my Linux PC now and after booting logging into the user a/c, it just gives a blank screen with the desktop wallpaper - no menu's or anything, so there's pretty much nothing I can do. I know I had removed the menu and replaced it with the dock (awn dock or something).

However, I can log in as root and root works fine (so I'm doing the update at the moment).

Coming back to my question, I used to know an Ubuntu command which I put in as sudo (terminal)and it used to work like a magic command which would literally restore and repair my linux installation - I even used it when I bought a new system and transferred my linux hard drive from my previous machine to the new one and this one command actually setup and prepared my linux installation to work smoothly in my new PC - just one command after connecting my h/drive in the new PC.

Any help on this, pls?
 
Old 01-08-2011, 03:59 PM   #2
silvyus_06
Member
 
Registered: Oct 2010
Distribution: Ubuntu 10.04 , Linux Mint Debian Edition , Microsoft Windows 7
Posts: 390

Rep: Reputation: 50
you know , they use "sudo " in ubuntu before any command that needs to be run as root . And there are many of these commands .

It may be dd, i think because you used it to restore your linux on another harddrive. I'm not sure though. Guess you'll need to give more details or start living without it...
 
Old 01-09-2011, 01:44 AM   #3
fkasmani
Member
 
Registered: Dec 2007
Posts: 178

Original Poster
Rep: Reputation: 17
is there ay site which lists all the commands available?
 
Old 01-09-2011, 06:48 AM   #4
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803
Blog Entries: 1

Rep: Reputation: 422Reputation: 422Reputation: 422Reputation: 422Reputation: 422
Quote:
Originally Posted by fkasmani View Post
is there ay site which lists all the commands available?

I don't know how complete it is, but this site has a fair number of them. You can also make use of the apropos command to help you find bash commands. For example, apropos copy will give you a listing of all the commands that can be involved in copying.

Last edited by Hangdog42; 01-09-2011 at 06:50 AM.
 
1 members found this post helpful.
Old 01-09-2011, 08:34 AM   #5
b0uncer
LQ Guru
 
Registered: Aug 2003
Distribution: CentOS, OS X
Posts: 5,131

Rep: Reputation: Disabled
Or you can just hit TAB twice in a terminal to get a long listing of any commands you may give (executables only if they're in your $PATH). But if it's not just a single executable you're looking for, that may not help much.

Quote:
Coming back to my question, I used to know an Ubuntu command which I put in as sudo (terminal)and it used to work like a magic command which would literally restore and repair my linux installation - I even used it when I bought a new system and transferred my linux hard drive from my previous machine to the new one and this one command actually setup and prepared my linux installation to work smoothly in my new PC - just one command after connecting my h/drive in the new PC.
As was pointed out, 'sudo' is used to run things with superuser (root) privileges, without actually logging in as root. Therefore that isn't helping, except that it tells you needed to run the command with root privileges--which is also evident from the fact that it does some things that modify your system ('fix it'), which should require superuser privileges Could it be that you ran something like
Code:
dpkg-reconfigure --all
to reconfigure, as it says, all packages? I'm not sure at all if this resolves any (changed) hardware related issues, but it just came to my mind. It might help if you knew whether or not it was Ubuntu (or Debian) related command, or 'general' for any Linux distribution...
 
1 members found this post helpful.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
ns:"error when calling class OldSim"&tclsh:"invalid command+child process exits abn." shojaru Linux - Newbie 0 03-05-2009 04:23 AM
Command "mail" returns "panic: temporary file seek" kenneho Linux - Software 5 12-23-2008 03:27 AM
Standard commands give "-bash: open: command not found" even in "su -" and "su root" mibo12 Linux - General 4 11-11-2007 10:18 PM
'readelf' command - "magic" number RedOctober45 Linux - Software 1 10-24-2007 02:17 AM
Tiny Sofa 2.0 - I thought "halt", "reboot" were only root command ?? sorcerer Linux - Distributions 1 08-21-2004 03:28 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 04:02 AM.

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