Tuesday, May 31, 2011

How do I view etc/passwd in Linux (Ubuntu)

I changed directories to etc/ and I listed all the files in /etc/ with the ls command and I can see passwd and another file called passwd- but i don't know how to open them. when i type open passwd nothing happens. I want to access my passwd file so i can run a cracker against it to test the strength of my passwords,How do I view etc/passwd in Linux (Ubuntu)
Make sure you're the owner of the system before you attempt this.



1. Log in as root

2. cd /etc

3. cat shadow



This will dump out the password hashes in your system.How do I view etc/passwd in Linux (Ubuntu)
While there are various programs to test password strength, (yahoo search) or use johntheripper. It honestly looks like your doing something kinda freaky deaky, and maybe even tweaky. I will tell you this, open is not a valid command. Good Luck!



P.S. The more numbers you have in your password, the stronger your password will be. And as a general rule, don't use dictionary words.

How to compile Java program that has this URI?

C:\JavaWork\Project1\src codes\MyName.java

this is on windows vista

I cannot change the directory to this in CMD

javac works

and do not say ';go to youtube'; becuase I have already watched all the videos and none of their techniques workHow to compile Java program that has this URI?
Since you have a space in the path, you need to put it in quotes when you do the CD:



cd ';C:\JavaWork\Project1\src codes';How to compile Java program that has this URI?
cd C:\JavaWork\Project1\src codes\

javac MyName.java

How to change the directories in command prompt? plz help....?

if i'm in c:\%26gt; then how make it d:\%26gt;

plz help......How to change the directories in command prompt? plz help....?
JUST WRITE DRIVE NAME FOLLOWED BY : LIKE THIS D:How to change the directories in command prompt? plz help....?
to change a directory type cd and then the directory.



Examples:



I want to change C:\ to D:\

I would type cd D:\



Or



I want to go to C:\Program Files

I would type cd C:\Program Files



etc...



To go back a directory I think you go CD%26gt;



Examples:



D:\New Folder

D:\New Folder\cd%26gt;D:\

D:\
c:\%26gt;d:
its easy dude





If ur in c:%26gt;

u just have to type

d: (press enter)



thats it !

How to change the cmd directory to location of current batch file?

What code would I use to specify the directory to be the current location of the batch file that I'm running? For example, I want my script to access a file in the same folder as itself, but I want to be able to move the folder around without changing the script every time.How to change the cmd directory to location of current batch file?
%~dp0



As in:

echo foo %26gt; %~dp0foo.txt



That should write foo.txt into the same directory as your .bat file, no matter where you run it from.



See link for details:How to change the cmd directory to location of current batch file?
perhaps



cd ./



would work

How do you change the Drive Directory of an External Hard Drive?

I have an external hard drive that used to be detected in my computer as (E:). I have many programs installed in that hard drive. Now, all of a sudden, it changed into (F:). I can still run the programs if I go to their folders directly, but the problem comes when I need to uninstall the programs. Since the program's uninstaller is programmed to uninstall the one in the (E:) directory, it shows ';Invalid E: directory';. How could I make it uninstall the one in F:, or can I make the F: directory come back to E:?How do you change the Drive Directory of an External Hard Drive?
Hi There,

You can change the drive letters using Disk Management.



Here is how to do it in XP:

Click ';Start'; click ';Administrative Tools';

Click ';Computer Management';

under ';storage'; click ';Disk Management';



On the right side is a listing of all your drives.



Right click your external drive and in the options box select ';Change Drive Letter and Paths';.



Just be sure you do not change it to another drive that has the same drive letter. You could first change the drive that now has the ';E'; drive letter to something else then you could safely change your external drive back to ';E Drive';.



Before I did all of this I would find out what changed the drive letter in the first place. Likely it was changed when you plugged in a media card reader. If that is true you could remove the card reader, reboot your computer and now the external drive should be in E Drive.



The new printers usually have a card reader built-in and they will reserve about five drive letters.

That happens even when they are empty.



You will have to decide what you would rather do.

Hope this helps,

Al
  • asp hosting
  • glory hand cream
  • Unable to open <stdio.h>...help!!:(?

    ohk i initially had this error unable to open file cos.obj..i tried changing directories.and now it shows unable to open stdio.h..i tried going and writing the address in option directories but it still dosent work either my psth is wrong.my file is located at C:\Program Files\Tcpp3..accordingly how am i suppose to write the path in directories...plzzz helpUnable to open %26lt;stdio.h%26gt;...help!!:(?
    C:\Program Files\Tcpp3 is where this program is installed, reinstall this program again

    How to change my main hard drive,have two drives on a comp, the main one doesnt have enough space anymore?

    Please can you tell me how can i make my drive D a main hard drive, i tried to put all the programs under drive D, but it still does the registries in C: can you please tell me how can i change my main harddrive??? I don't have enough space on my main hardrive anymore, i cannot even install any programs, for some reason some programs they do not give the option to change the directory to which they install files, they go straight to C:, please let me know what is the best way to do that, ThanksHow to change my main hard drive,have two drives on a comp, the main one doesnt have enough space anymore?
    You could use a program like Ghost to make an image of the boot drive, then restore it to the other drive.



    New drives often come with a CD that has a format/setup utility that will give you the option of copying your boot drive to the new drive. These utilities often work with drives you have lying around as well. You may be able to download such a program for free from the website of the company that made the drive you want to copy to.How to change my main hard drive,have two drives on a comp, the main one doesnt have enough space anymore?
    This is not an easy thing to do, and you could lose data if you do it wrong.



    Generally, you use a disk imaging program such as Symantec (Norton) Ghost or Partition Magic.



    The safest thing to do is start with a brand new, large, blank drive, and image your C: to it.



    The next choice is to make sure there's nothing you intend to keep on D:, then image C: to it. If there is data you must save, be sure to back it up somewhere else. And if there are programs on D:, make sure you have the means to reinstall them from scratch. The reason this method is risky is that if you forget to back up something, or improperly back it up, you will lose that data.
    There isn't a straightforward way to do this, First question to you is do you actually have 2 physical hard disks in your computer? it may only be one and its got 2 partitions. If that is the case you could just extend the C partition and get rid of the D partition. If you have 2 physical disks then it starts getting more complicated, I would suggest the easiest thing is to uninstall all your progs and reinstall them onto D.