Tag Info

New answers tagged

2

The latter prompt that you have seen is the default on Red Hat-based systems, such as Red Hat Enterprise Linux, CentOS, and Fedora. The former is the default on Debian-based systems such as Debian itself and Ubuntu. The default Red Hat PS1 prompt is: export PS1="[\u@\h \W]\\$ " You can of course change the prompt to whatever you wish. I prefer the Red ...


2

What you're after is the bash PS1 variable. To get what you want, you need to export this variable from .bashrc, which is executed on login. The PS1 you want should look like this: export PS1="[\u@\h \W]$ " place that in .bashrc in your home directory. Or just run it as a command from the shell if you want it just temporarily. If you want colors on ...


2

That’s pretty easy. Just look at man 1 bash: Whereas the default prompt uses \w (“the current working directory, with $HOME abbreviated with a tilde (uses the value of the PROMPT_DIRTRIM variable)”), there’s also \W: “the basename of the current working directory, with $HOME abbreviated with a tilde” To get what you want, use this: export PS1="[\u@\h \W]$ ...


0

Since the question is phrased in a platform-neutral way, the answer for Mac is here.


0

Yeah there's a program called stunnel it has a configuration file, you tell it what port to listen on, what port to forward to. it works for client side, or server side, or both. so it can turn a server that doesn't support ssl, into effectively one that does. or a client that doesn't support ssl, effectively into one that does. or make both a client ...


2

You should try to specify a timeout for netcat, e.g. nc -w 10 x.x.x.x 23 < commands.txt Netcat will quit after 10 seconds of inactivity.


1

The answer previously marked correct is actually incorrect (to an extent). The resulting packet will be sent contained in a frame with a specific destination MAC address. The destination MAC address will be based on the senders ARP table. An ARP reply is cached automatically regardless if it has expired. Therefore, the LAST response will be cached ...


0

*please refer to Goblinlords answer it more accurately explains what I was trying to get accross. If I'm not mistaken its because PC2 is slower to respond. When you make a telnet session you are creating a TCP session. This starts with a 3-way TCP handshake. Since you only sent one telnet connection request your client sees that it is already connected to ...


0

The problem is partially the port, but according to the user manual at www.saelig.com/supplier/fametech/ecov110usersmanual.pdf , you don't telnet to it; rather you download a special application.


0

I have a Samba NAS that I cannot connect to using UNC paths or drive mapping, and I cannot access the built in web application. But I can ping the device by it’s IP address as well as telnet into it. Is it possible to reboot the device over telnet? Generally, what you are describing as a “Samba NAS” is simply a Linux box of some kind running some ...


0

If you can SSH (port 22 normally), you can reboot with reboot now



Top 50 recent answers are included