• Skip to main content

Uly.me

cloud engineer

  • Home
  • About
  • Archives

open

Open Browser in Bash

November 30, 2022

Here’s a nice little command to open a browser from Bash.

#!/bin/bash
open https://domain.com/path/to/web/page/index.html

#!/bin/bash open https://domain.com/path/to/web/page/index.html

You can use this command to open a web page from your script.

Filed Under: HTML, Linux Tagged With: bash, browser, open

Check Open Ports Remotely

August 17, 2021

Here are a few tools to check if ports are open from a remote host.

nc -zvw10 192.168.0.1 22
nmap 192.168.0.1 -p 22
telnet 192.168.0.1 22

nc -zvw10 192.168.0.1 22 nmap 192.168.0.1 -p 22 telnet 192.168.0.1 22

You may have to install netcat and nmap if missing in your distro.

yum install nc
yum install nmap

yum install nc yum install nmap

Filed Under: Linux Tagged With: check, nc, nmap, open, ports, remote, telnet

rpmdb open failed

May 22, 2021

If you get this error, something happened to the rpm database. To fix.

rm -f /var/lib/rpm/__db*
db_verify /var/lib/rpm/Packages
rpm --rebuilddb
yum clean all

rm -f /var/lib/rpm/__db* db_verify /var/lib/rpm/Packages rpm --rebuilddb yum clean all

Run yum again.

Filed Under: Linux Tagged With: failed, open, rebuild, rpmdb, yum

  • Home
  • About
  • Archives

Copyright © 2023