Hot answers tagged

73

Holding down the Ctrl-Alt while dragging the left mouse button.


52

This is similar to what happens when you delete a file that another system has open on a NFS mount. The problem is that the file has been removed from the filesystem while its "link count" was >1, meaning that other processes are still holding it open. Log in to the system where the file physically resides. (no network mount) Execute lsof dir-name/....


34

My preferred option is to go with multitail. I'd run something like: multitail -l 'ssh user@host1 "tail -f /some/log/file"' -l 'ssh user@host2 "tail -f /some/log/file"'


33

I believe that return code is a generic .NET console app crashed code. The way the job is set up in Task Scheduler is not causing this issue. Check the Application event log on the server for any errors that occurred near the time the job 'completed'. Those events should give you more information as to why the job exited abnormally, so you have some idea ...


28

Unless you have changed the default key bindings, you can do Ctrl+a -> Ctrl+t, which will show the time, if you are in screen. This will work even if you have ssh:d away somewhere else, unlike the other suggestions.


26

While using a classical RJ45 jack, the connection on your Cisco router really is a RS232 serial connections. This means that, independently from the physical connector, your PC need to speek the same RS232 protocol. This is why do you need a DB9 (classic serial port connector) to RJ45 converter. The converter does not change the underlying protocol, rather ...


15

The parameter is controlled via the kernel command line, using setterm merely alters the runtime settings. To disable it system wide you can alter your kernel boot command line by appending it with "consoleblank=0" in your boot configuration (grub/lilo). If something during boot setterm's it then it will override the value.


15

In ESXi 5 (and 4.1), this is referred to as "Tech Support Mode." It's an explicit option in the ESXi console interface. See the following article from VMWare on how to enter it.


14

The caption command in the ~/.screenrc is a nice way to differentiate a screen session. I'm personally using this: $ cat ~/.screenrc caption always "%{= kc}Screen session on %H (system load: %l)%-28=%{= .m}%D %d.%m.%Y %0c" It adds a line like this one at the bottom of the screen: Screen session on gbook (system load: 1,75 1,74 1,68) Lun ...


12

SSH offers a keep-alive facility. Add the following to your local ~/.ssh/config (create if it doesn't exist): ServerAliveInterval 15 ServerAliveCount 3 This setting will establish a keep-alive signal sent every 15 seconds through the secure tunnel. After three consecutive failures, the SSH client will exit. Note that on some systems (including macOS 10.14)...


12

As root, dump the keyboard map to a file kbdcontrol -d > mykeys Change the file so "Ctrl+NumLock" will set "Scroll Lock". Find line with scancode "base" 069, or where "nlock" fills the entire line. Edit column 3 from "nlock" to "slock". The line now looks like: "069 nlock nlock slock nlock nlock nlock nlock nlock O" As root, issue the ...


12

You should be able to connect the console port to the patch panel with a rollover cable. You must use a standard straight-through ethernet on the other end - NOT another rollover cable. If it's viable, it would be much simpler to configure the switch with a management IP and SSH/telnet access.


11

Use a straight through cable from the console port of the Cisco to the patch panel, and then a rollover from the port in the wall to your computer?


10

Whereas an SSH connection transmits keystrokes, an HP ILO connection transmits key states. Each time you press a key, the server receives separate KeyDown and KeyUp events. The repeated keystrokes result when the KeyUp event is received late. The two most likely reasons for the KeyUp event to be received late are: Network congestion/performance issues. ...


10

Many network devices use the Yost RJ45 pinout for RS-232 console communications. Cisco is probably the best known, but certainly not the only. The switch should have come with a DB9 to RJ45 blue cable. You can just pickup any USB-DB9 Serial adapter (though I highly recommend getting one with a Prolific PL2303HX Rev D Chipset, as they "just work" and are ...


9

With systemd things are different. See article Stop Clearing My God Damned Console. In short: mkdir /etc/systemd/system/getty@.service.d cat >/etc/systemd/system/getty@.service.d/noclear.conf <<EOF [Service] TTYVTDisallocate=no EOF systemctl daemon-reload Verify the result with systemctl cat getty@tty1.service


9

Any reason why you can't use something like this: tail -f FILE | grep --color=always KEYWORD source: commandlinefu.com


9

I copied --extra-args='console=ttyS0' somewhere from Internet last time, it works! No need for two "console" commands, that just opens two consoles instead of one No need to manually specify the baud rate. "--serial" option has been deprecated The RedHat console device is "/dev/ttyS0", not "/dev/tty0" See: http://anaconda-installer.readthedocs.io/en/latest/...


8

I've configured serial consoles in the past, and have found them particularly useful for network gear. In the case of network gear. sometimes a serial console is the only way to remotely manage the appliance. am curious as to the benefits of serial consoles versus the ILO/ILOM/DRAC technologies available on modern servers. I'm having this exact debate ...


8

I use a very clever trick (if I do say so). Answer is NO, putty can't do a find in the scroll back buffer. Here's my workaround: I enable putty session logging, and then have the session log open in GxTail, which is a text viewer that updates in real time. I have the windows open side by side (or one on each monitor), and when I issue a command in ...


8

The ability appears to exist in systems running SMASH 1.04, but not in older versions such as SMASH 1.00 or busybox. My experience is this: I was able to add SOL capability to a X8DTL by upgrading the firmware from version 2.23 to 2.43 with images downloaded from http://www.supermicro.com/support/bios/firmware0.aspx and uploading it to the HTTP interface of ...


8

(based on @MichaelHampton's answer) The Linux kernel sets the display mode, apparently, even before the init process runs. Now, the kernel takes parameters from the boot loader - so the thing to do is to set the parameter telling it not to switch display mode. However, this is not the whole story: After the display mode has been set, there's also a setting ...


7

You can use fabric to tail several hosts (and also grep results, if needed): $ fab -P -u 'USER' -p 'PASSWORD' --linewise -H host1,host2,host3 -- tail -f /path/to/my/log.log | grep ERROR


7

That's handled through the receive-job cmdlet. $job = Start-Job { dir } Receive-Job $job You only get data if HasMoreData is true on your get-job output. This will return as an array, with one line of text per array-element. help about_jobs will give you quite a bit of detail about how to interact with jobs in general.


6

I use ncdu for this. Console-based, so working anywhere, and very simple to use.


6

I had a similar problem when trying to perform a text-only installation of CentOS. It all boils down to adding kernel arguments for specifying serial output console console=ttyS0 so that you can then connect to it when --graphics none or --nographics is used. From virt-install's manual: --graphics none No graphical console will be allocated for the ...


6

I have found another solution: Modify your .screenrc, so my screen session looks completely different from normal terminal.


6

If you check the Event Log-->Application, you might get detailed info there. You should be able to find an error record with exception code 0xe0434352 which is the Hex value of 3762504530


6

If you don't care about the rest of the output, then yourcommand | grep "some regular expression" will only print the lines that contain "some regular expression". yourcommand | less will send the output of your command to the less command which lets you scroll up and down the output. You can search by typing /some regular expression and pressing enter. ...


6

Do yourself a favor and purchase a USB to serial adapter. You never know when you may need it in addition to connecting to your Dell switch.


Only top voted, non community-wiki answers of a minimum length are eligible