942 private links
A Shell script usually needs to test if a command succeeds or a condition is met. In Bash, this test can be done with a Bash if statement. As with any other programming language, Bash comes with conditional expressions that allow you to test for conditions and alter the control flow if the condition is satisfied or not.
This post covers the bash if statement and the related clauses then, else if (elif), and else.
Mettre à jour un serveur Linux qui n'est pas connecté à internet peut sembler être une tâche difficile, mais il existe plusieurs techniques pour maintenir votre système à jour même sans connexion à internet.
Dans cet article, je vais vous montrer deux méthodes pour mettre à jour un serveur Linux "offline" (Debian Familly), à savoir :
- En utilisant une connexion reverse SOCKS proxy avec SSH afin de permettre à notre serveur d'accéder à internet temporairement uniquement à travers notre Proxy SOCKS
- Via l'utilitaire apt-offline
In this article, we will show you several ways to split the Vim window into separate workspaces both horizontally as well as vertically.
Technical articles, content and resources for IT Professionals working in Microsoft technologies
You can create, edit, and delete scheduled tasks using Command Prompt without the need of ever opening Task Scheduler, and in this guide we'll show you how to do it.
So you've got your nice page and you're adding your background image and…
.hero { /* 🚩 */ background-image: url('/image.png'); }
WAIT!
Did you know that this is going to be very unoptimized for performance? In more ways than one.
1. IP command
2. traceroute
3. tracepath
4. ping
5. ss
6. dig
7. host
8. hostname
9. curl
10. mtr
11. whois
12. ifplugstatus
13. iftop
14. tcpdump
15. ethtool
16. nmcli
17. nmap
18. bmon
19. firewalld
20. iperf
21. speedtest-cli
22. vnstat
#!/bin/bash
#print the list of all text files
ls *.txt
#Iterate the loop to read all text files
for value in `ls *.txt`;
do
#Read the basename of the file
filename=`basename $value .txt`
#Rename all files to doc files
mv $value $filename.doc;
done
#Print all doc files
ls *.doc
Let me share the best resource to learn Linux for free. This is a collection of Linux PDFs that you can download for free to learn Linux.
BorgBackup (Borg) est un programme de sauvegarde par déduplication. Il supporte la compression et le chiffrement.
Borg permet de fournir un moyen efficace et sûr de sauvegarder des données. La technique de déduplication des données rend Borg approprié pour les sauvegardes quotidiennes puisque seules les modifications sont stockées. La technique de chiffrement est adaptée aux sauvegardes vers des destinations qui ne sont pas totalement fiables.
The .bashrc is a standard file located in your Linux home directory.
In this article I will show you useful .bashrc options, aliases, functions, and more.
In this cheat sheet tutorial I have consolidated a list of Linux commands with examples and man page link to give you an overview on Linux day to day usage. We know Linux is one of the preferred choice for most of the IT domains so having basic knowledge of Linux is mandatory for everyone. I have divided the Linux commands into different section so you can choose to only concentrate on the commands which suits your domain.
The
rel
attribute defines a relationship between the linked resources (one being the document it appears on). And it provides that relationship with meaning, creating a semantic network where the different pieces have a role and a purpose. This detail may go unnoticed by most browser users, but not for the browser itself, assistive technologies, and web crawlers, which can take advantage of this attribute to provide a better experience. Also, savvy web developers can use it to make friendlier sites–we’ll see some examples in the following sections.
You probably use prefers-color-scheme a lot within your CSS media queries, to make a dark or light theme for your sites and apps based on user preference. Maybe you also add a toggle so people can choose their color scheme, irrespective of their OS settings. Beautiful. But now there's more to play with!
Adding an image with HTML is pretty easy, it’s just a simple tag, after all, right?
<img src="path/to/image.jpg" />
But when you start taking into consideration topics such as performance, screen sizes, accessibility, pixel density, or user preferences, you might ask yourself at some point if plain HTML is enough for the task… And the answer is yes! HTML has many options and is powerful enough to handle this task. This article will cover what you should consider at the moment of adding an image to a site with HTML.
240 règles pour améliorer vos sites et mieux prendre en compte vos utilisateurs
#qualitéweb #accessibilité #sécurité #performance #privacy #écoconception
:set paste
nmcli dev status
nmcli radio wifi
nmcli radio wifi on
nmcli dev wifi list
sudo nmcli dev wifi connect network-ssid password "network-password"
sudo nmcli --ask dev wifi connect network-ssid
nmcli con show
nmcli con down ssid/uuid
nmcli con up ssid/uuid
PHP 8 Enable
sudo a2dismod php7.4
sudo a2enmod php8.0
sudo service apache2 restart
launchctl load -w /System/Library/LaunchDaemons/com.apple.atrun.plist
Exemple avec la commande at
:
at -f test.sh 22:15