What do you want to save?
Add Code snippet
New code examples
-
Shell/Bash 2022-02-16 08:45:03
how to clear a port in linux
netstat -tulnap // list all ports and processes netstat -anp|grep "port_number" // show port details sudo fuser -k Port_Number/tcp // free the port needed # or lsof -n -i :'port-number' | grep LISTEN // get port details # sampl... Add solution -
Shell/Bash 2022-02-16 05:40:01
linux cli chart real time
curl -LO https://github.com/tenox7/ttyplot/releases/download/1.4/ttyplot_1.4-1.deb && sudo apt install ./ttyplot_1.4-1.deb { while true; do ps auxw | grep php | grep -v fpm | grep -v grep|grep -v tee | wc -l; sleep 0.5; done } | ttyplot Add solution -
Other 2022-02-15 23:05:35
enable mod_headers apache2
#enable directive sudo a2enmod headers && sudo service apache2 restart ls /etc/apache2/mods-enabled/ | grep headers.load #disable directive sudo a2dismod headers && sudo service apache2 restart ls /etc/apache2/mods-enabled/ | grep heade... Add solution -
Shell/Bash 2022-02-14 03:15:02
ubuntu increase swap size
# Create an empty file: dd if=/dev/zero of=/media/fasthdd/swapfile.img bs=1024 count=4M # Bake the swap file: mkswap /media/fasthdd/swapfile.img # Bring up on boot: # Add this line to /etc/fstab /media/fasthdd/swapfile.img swap swap sw 0 0 # Activate: ... Add solution -
Java 2022-02-13 20:50:18
conky cpu temperature
Please see this thread and note the answer by JeanFI. Basically it amounts to needing to review the hardware specification which will tell you the output that relates to the CPU. To add the display to conky once you are aware of the value (using k10temp... Add solution -
Shell/Bash 2022-02-13 15:15:13
ubuntu restart network manager when ping is low
start on started network-manager stop on runlevel [016] script while true; do if ifconfig eth0 | grep -q "inet addr:"; then # echo "all ok!" else restart network-manager fi sleep 5 done end script Add solution -
Shell/Bash 2022-02-10 23:01:07
how to grep data from site
#!/bin/bash wget -q -O hkindex.html http://www.aastocks.com/EN/market/HKIndex.aspx?Index=VHSI rm -f cq cat hkindex.html | grep -A 23 '' > indextable #cat indextable | grep '>VHSI<' > vhsivalue cat indextable | grep '>HSI<' | awk -F '[&... Add solution -
-
Shell/Bash 2022-02-10 12:40:27
check active ssh connections on linux
last -a | grep -i still Add solution
Best helpers
Ranking is empty