874 private links
neutre='\e[0;m'
noir='\e[0;30m'
gris='\e[1;30m'
rougefonce='\e[0;31m'
rose='\e[1;31m'
vertfonce='\e[0;32m'
vertclair='\e[1;32m'
orange='\e[0;33m'
jaune='\e[1;33m'
bleufonce='\e[0;34m'
bleuclair='\e[1;34m'
violetfonce='\e[0;35m'
violetclair='\e[1;35m'
cyanfonce='\e[0;36m'
cyanclair='\e[1;36m'
grisclair='\e[0;37m'
blanc='\e[1;37m'
normal='\033[0m'
gras='\033[1m'
fin='\033[2m'
italic='\033[3m'
souligne='\033[4m'
flash='\033[5m'
inverse='\033[7m'
invisible='\033[8m'
echo -e "${rougefonce}Hello${neutre} ${jaune}World${neutre}"
echo -e "${gras}Hello${normal} ${flash}World${normal}"
Create a custom PS1 variable for your Bash
On trouvera dans ce chapitre une initiation pratique au scripting Bash.
Les sections qui suivent dans ce chapitre sâinspirent notamment du livre Scripts shell Linux et Unix de Christophe Blaess quâil est conseillĂ© dâacquĂ©rir. Lâouvrage est orientĂ© embarquĂ© mais convient parfaitement pour un apprentissage prĂ©cis, rapide, intĂ©ressant et dynamique.
Time to use arrays in bash shell scripts in this chapter. Learn to add elements, delete them and get array length.
Bash How-to guides and examples
The AWK command dates back to the early Unix days. It is part of the POSIX standard and should be available on any Unix-like system. And beyond.
While sometimes discredited because of its age or lack of features compared to a multipurpose language like Perl, AWK remains a tool I like to use in my everyday work. Sometimes for writing relatively complex programs, but also because of the powerful one-liners you can write to solve issues with your data files.
#!/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
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.
â€ïž Lightweight: Crafted with minimalistic UI design.
âĄïž Fast: Send requests and get/copy responses in real-time.
HTTP Methods
GET
- Requests retrieve resource informationPOST
- The server creates a new entry in a databasePUT
- Updates an existing resourcePATCH
- Very similar toPUT
but makes a partial update on a resourceDELETE
- Deletes resource or related componentHEAD
- Retrieve response headers identical to those of a GET request, but without the response body.CONNECT
- Establishes a tunnel to the server identified by the target resourceOPTIONS
- Describe the communication options for the target resourceTRACE
- Performs a message loop-back test along the path to the target resource<custom>
- Some APIs use custom request methods such asLIST
. Type in your custom methods.đ Make it yours: Customizable combinations for background, foreground, and accent colors â customize now.
Bash contains features that appear in other popular shells, and some features that only appear in Bash. Some of the shells that Bash has borrowed concepts from are the Bourne Shell (sh), the Korn Shell (ksh), and the C-shell (csh and its successor, tcsh). The following menu breaks the features up into categories, noting which features were inspired by other shells and which are specific to Bash.
Comment conteneuriser une application à l'aide de Docker ? Qu'est-ce qu'un Dockerfile ? Nous allons le découvrir dans cet article.
Character | File Type |
---|---|
- |
Regular file |
b |
Block special file |
c |
Character special file |
C |
High performance ("contiguous data") file |
d |
Directory |
D |
Door (special IPC file in Solaris 2.5+ only) |
l |
Symbolic link |
M |
Off-line ("migrated") file (Cray DMF) |
n |
Network special file (HP-UX) |
p |
FIFO (named pipe) |
P |
Port (special system file in Solaris 10+ only) |
s |
Socket |
? |
Some other file type |
Bash contains features that appear in other popular shells, and some features that only appear in Bash. Some of the shells that Bash has borrowed concepts from are the Bourne Shell (sh), the Korn Shell (ksh), and the C-shell (csh and its successor, tcsh). The following menu breaks the features up into categories, noting which features were inspired by other shells and which are specific to Bash.
This manual is meant as a brief introduction to features found in Bash. The Bash manual page should be used as the definitive reference on shell behavior.
Docker est devenu un outil incontournable pour tous les dĂ©veloppeurs ou les administrateurs dâinfrastructure, mais celui-ci peut paraĂźtre complexe au premier abord. On se retrouve donc aujourdâhui pour tenter de clarifier tout ça avec ce premier article de cette sĂ©rie consacrĂ© Ă Docker oĂč lâon va dĂ©couvrir les bases.