The old "strings ftp.exe" thing

Relax in this forum - no rules except obscenity & profanity, and guests can post!
Post Reply
User avatar
The Beatles
Fear me for I am root
Posts: 6285
Joined: Tue May 24, 2005 8:12 pm

Post by The Beatles »

code: Select all

root@tokaj /c/WINDOWS/system32 # strings ftp.exe  | grep -i calif
@(#) Copyright (c) 1983 The Regents of the University of California.
root@tokaj /c/WINDOWS/system32 #
:wq
Guest

Post by Guest »

...?

(antisocial)
User avatar
windhound
Fish Rocketh, cows sucketh
Posts: 1030
Joined: Wed Jun 02, 2004 4:36 pm
Location: Ze Ocean

Post by windhound »

root@tokaj /c/WINDOWS/system32 #

...looks like a cross between linux and dos terminal.. it shows the exact location (linux, well, the ones I've seen (which isnt many) just show the current folder, while dos shows the complete line) but root@tokaj and the # make it look suspiciously like linux ;)
well, that and its accessing windoze files... thats possibly the most noticeable thing.. "WINDOWS".. *laughs*.. always thought that was funny, that some folders like windows and system are somtimes capitalized..

*yawns*
needs sleeeep I do..

anyways, wazzat?
Hobbs FTW!
User avatar
Devari
Mr. -1
Posts: 3194
Joined: Wed Mar 10, 2004 5:02 am
Location: British Columbia, Canada

Post by Devari »

It's a linux system. Windows uses the "C:\WINDOWS\System\BorkComputer.exe" style of naming things.
If you go down to the woods today, you better not go alone
It's a lovely day in the woods today, but safer to stay at home
BECAUSE EVIL FREEN IS KILLING ALL THE TEDDY BEARS AT THEIR PICNIC
User avatar
Devari
Mr. -1
Posts: 3194
Joined: Wed Mar 10, 2004 5:02 am
Location: British Columbia, Canada

Post by Devari »

Besides - last I checked, Windows doesn't have strings or grep. ;)
If you go down to the woods today, you better not go alone
It's a lovely day in the woods today, but safer to stay at home
BECAUSE EVIL FREEN IS KILLING ALL THE TEDDY BEARS AT THEIR PICNIC
User avatar
windhound
Fish Rocketh, cows sucketh
Posts: 1030
Joined: Wed Jun 02, 2004 4:36 pm
Location: Ze Ocean

Post by windhound »

yup
knew it was, just by the command

but it just looked odd to me, mainly because it showed the full path to the location..
Hobbs FTW!
User avatar
The Beatles
Fear me for I am root
Posts: 6285
Joined: Tue May 24, 2005 8:12 pm

Post by The Beatles »

If you are not root, one of the following lines in your .bash_profile:

code: Select all

export PS1="\[\033[01;32m\]\u@\h \[\033[01;34m\]\w \$ \[\033[00m\]" #colorized
export PS1="\u@\h \w \$ " #not colorized
or if you are root, one of the following:

code: Select all

export PS1="\[\033[01;32m\]\u@\h \[\033[01;34m\]\w # \[\033[00m\]" #colorized
export PS1="\u@\h \w # " #not colorized
will produce that bash prompt for you. I generally like to see the full path; and I've been using that particular PS1 string for about two years now.
:wq
Post Reply
  • Members connected in real time

    🔒 Close the panel of connected members