Try this
Code: Select all
/proc/net/tcp
Code: Select all
(echo >/dev/tcp/localhost/22) &>/dev/null && echo "TCP port 22 open" || echo "TCP port 22 close"
Code: Select all
(echo >/proc/net/tcp/localhost/22) &>/dev/null && echo "TCP port 22 open" || echo "TCP port 22 close"
Believe I tried this when I ran a sudo find -xdev -type f -name "tcp" -print # Time I found /dev/tcp to be moved -yes- results showed /proc/net/"tcp"
Code: Select all
file tcp # result was "Empty"
ls -lat # Also shows all files in this directory are all "Zero (0) byte " in size meaning no value usage. ?
dr-xr-xr-x 6 root root 0 Jul 5 12:24 stat/
-r--r--r-- 1 root root 0 Jul 5 12:24 tcp
-r--r--r-- 1 root root 0 Jul 5 12:24 tcp6
-r--r--r-- 1 root root 0 Jul 5 12:24 udp
-r--r--r-- 1 root root 0 Jul 5 12:24 udp6
-r--r--r-- 1 root root 0 Jul 5 12:24 udplite
-r--r--r-- 1 root root 0 Jul 5 12:24 udplite6
-r--r--r-- 1 root root 0 Jul 5 12:24 unix
^^ - all column
ls -lat | awk '{print $5}' # nice column of all 0's
How do you know that your laptop died? https://www.hp.com/us-en/shop/tech-take ... nd-replaceoutlaw wrote: Sat Jul 19, 2025 12:22 pm Unfortunately this problem has been resolved ... the laptop has died and is not worth repairing.
Outlaw
"It has been my experience that folks who have no vices have very few virtues." --Abraham Lincol
A laptop or desktop with a dead CMOS battery will at least boot to the bios screen because the bios will have reverted to its default settings. If you are getting a black screen instead, you have additional problems.How do you know that your laptop died? https://www.hp.com/us-en/shop/tech-take ... nd-replace
If this battery is dead, everything is black! If this is ok and work again your laptop, check again all your bios settings and fast boot, secure boot disabled because sometimes you can not see your hard drive from Linux!
Maybe you are right, in my experience once my laptop it looked completely dead also the screen, I replaced the battery myself and the laptop became alive again! It was, still exist from 2006, laptop made by local company.j2mcgreg wrote: Wed Jul 23, 2025 7:29 am @asinoro wrote:A laptop or desktop with a dead CMOS battery will at least boot to the bios screen because the bios will have reverted to its default settings. If you are getting a black screen instead, you have additional problems.How do you know that your laptop died? https://www.hp.com/us-en/shop/tech-take ... nd-replace
If this battery is dead, everything is black! If this is ok and work again your laptop, check again all your bios settings and fast boot, secure boot disabled because sometimes you can not see your hard drive from Linux!