# Benchmark your CPU
wget http://cdn.geekbench.com/Geekbench-5.2.3-Linux.tar.gz
tar xvf Geekbench-5.2.3-Linux.tar.gz
cd Geekbench-5.2.3-Linux/ && ./geekbench_x86_64
it will upload all the details into Geekbench website and generate a URL with all reports gathered like below...
# Know your System/Server CPU usage
First, for Ubuntu users, you need to install the package. To do that, run the below command:
sudo apt update --yes && sudo apt install sysstat --yes
For Centos users, the package should come as by default.
# for every 5 minutes(300 seconds)
sar 300
Note...
# Know your server network usage (Bandwidth)
First, you need to know your network interface name. Execute the command below to get it
ip a | grep -i BROADCAST
Notice: There could be multiple network interfaces. You need to consider the one which has your Server IP along with
For the sake of...
# Get resource(CPU, RAM) usage of a Process ID(PID):
ps -up <PID>
Note: In case you wonder what a "PID" could look like. So PID is a integer(numeric) number. And on Linux, every application runs with a unique PID.
So, for example, if I need to know what the PID is for my database(MySQL)...
Another Command I found today to truncate a file content
truncate -s 0 <file_name>
Advantage of this command over the command I shared earlier is we can use the above command with sudo, e.g.,
sudo truncate -s 0 <file_name>
Nice share @OP
One can look into below thread for more:
https://www.blackhatworld.com/seo/list-cheapest-dedicated-servers-ssd-sata-1-gbit-port-windows-linux-os.1105442/
Dedicated Server (https://www.blackhatworld.com/seo/list-cheapest-dedicated-servers-ssd-sata-1-gbit-port-windows-linux-os.1105442/)
You can still use Dedicated VPS/Cloud (like scaleway, ovhcloud)
But be sure, your service is allowed by the Hosting provider.
Contact them and discuss your service...
# empty a file content
> test.txt
Note: If file 'test.txt' has some content on it, the above command will erase/truncate it. But the file itself would not be deleted.
Example:
Just use a Paypal
I am sure 99% here have a Paypal account
Otherwise use a Physical Debit Card, most of the people have them
And third option is Physical Credit Card. Other than 3rd world country most of the people generally use them
IF YOU GUYS KNOW ANY OTHER CLOUD/SERVER PROVIDER WHICH OFFERS FREE CREDITS.
THEN PLEASE DON'T HESITATE TO SHARE THE LINK OR NAME OF THE PROVIDER HERE. :D
Thank you
[Free] Cloud Credits ($1500+) for 12+ months - Providers accepts Paypal/Credit Card/Debit Card - Ionos, Linode, Kamatera, Oracle, Ovh, GoogleCloud, Azure, Vultr, DigitalOcean, Tencentcloud, Arubacloud
Tips: If you don't want your cloud account to get banned, don't use more credits that the...
# Ping, DNS, etc
1.1) Detailed Domain Name Server(DNS) lookup
dig google.com A
output:
1.2) shorter version of Name server lookup
nslookup google.com
output:
1.3) Checking if an IP address is live and connectable. And how long it is taking to connect
ping 8.8.8.8 -c 3
Note: here -c =>...
# Work with your machine hostname
1.1) get hostname
hostname
<OR>
cat /etc/hostname
1.2) set a hostname
sudo hostnamectl set-hostname "Your-Server-Name"
1.3) add a new host entry to your remote machine
Suppose you have created a web application which is running on localhost port 8080...
# Free your unused RAM
First, check your system's RAM status using the following command:
free -mh
Second, you need to log into a root using the following commands:
sudo su - root
Post that, run the following commands:
sync; echo 1 > /proc/sys/vm/drop_caches
sync; echo 2 >...
# Printing information on screen
1.1) print on the screen with printf command
printf "Your User ID: \t$USERID\n"
Note: here '\n' represents a new line. And '\t' represents a tab space
1.2) print on the screen with printf command
echo 'Hello World!'
echo "Your Password is: $PASSWORD"
Note...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.