Recherche
Voici les résultats de votre recherche.
Résultats plein texte:
- terminal
- ent variable: <code> export LESS=X less /path/to/file </code> Similarly, ''vim'' can be configured not
- ffmpeg
- ricks, how to add interesting video to your audio file, often autogenerated visuals. All the code is sup... O.mp4 </code> The code above creates a mp4 video file with a vectorscope nicely centered inside a 854×4... -f flv "$YOUTUBE_URL/$KEY" </code> # Print file metadata etc. ffmpeg -i path/to/file.ext # Convert all m4a files to mp3 for f in *.m4a; do f
- shortcut @windows
- em. **Ctrl + Shift + N**: Create a new folder in File Explorer. **Ctrl + Shift + E**: Display all folders above the selected folder in the File Explorer. **Ctrl + Shift**: Switch the keyboard
- truecolor @terminal
- their own method (e.g. an option in their config file). They should use whichever method best matches t
- scripting @terminal
- least don't change it within the same shellscript file); don't change your code layout with your mood. ... counting variables, etc., ... (in the example: ''file'') * prefer ''lowercase'' variables * if yo... the prefix 'MY_' MY_LOG_DIRECTORY=/var/adm/ for file in "$MY_LOG_DIRECTORY"/*; do echo "Found Logfile: $file" done </code> ==== Variable initialization ====
- obselete @terminal
- ^ Syntax ^ Replacement ^ Description ^ |''&>FILE'' and ''>&FILE'' |''>FILE 2>&1'' |This redirection syntax is short for ''>FILE 2>&1'' and originates in the C Shell. The latter
- color @terminal
- their own method (e.g. an option in their config file). They should use whichever method best matches
- behaviours @terminal
- exits, Bash reads and executes commands from the file ''~/.bash_logout'', if it exists. Why an extra l... ds and executes commands from ''~/.bashrc''. This file should contain, for example, aliases, since they ... ''/etc/bash.bashrc'' or a similar system-wide rc-file is specific to vendors and distributors that ship... Bash//. The classic way to have a system-wide rc file is to ''source /etc/bashrc'' from every user's ''
- basics @terminal
- les ===== A shell script usually resides inside a file. The file can be executable, but you can call a Bash script with that filename as a parameter: <code> b... extension, but by **permissions** (filemode). The file name can be any combination of legal filename cha... ng else. <code> chmod +x ./myfile </code> If the file is executable, and you want to use it by calling
- lire @secu
- maine : #!/bin/sh lr_log2mail combined --log-file /var/log/apache2/access.log.1 -s "Apache access r... on_addresse@mail.com lr_log2mail syslog --log-file /var/log/syslog.0 -s "Syslog report" -o html mon_addresse@mail.com lr_log2mail syslog --log-file /var/log/auth.log.0 -s "Auth report" -o html mon_
- redirection @scripts
- tances, there are 3 files open, accessible by the file descriptors 0, 1 and 2, all connected to your ter... wrap> Both, ''stdout'' and ''stderr'' are output file descriptors. Their difference is the **convention... rror messages (stderr) to the bit bucket cat some_file.txt 2>/dev/null </code> Whenever you **reference** a descriptor, to point to its current target file, then you use a "''&''" followed by a the descrip
- quoting @scripts
- ral ''*'' as argument. It will, unless you have a file named ''*'', spit out an error. <code> echo "You... h ['' you will see that there is in fact a binary file with that name. So if we were writing this as a t
- positional-parameters @scripts
- : ''COMMAND [options] <params>'' # Like 'cat -A file.txt' See simple option parsing code below. It's ... d more. while : do case "$1" in -f | --file) file="$2" # You may want to check validity of $2 shift 2 ;; -h | --help) display_h... re options break ;; esac done # End of file </code> ==== Filter unwanted options with a wrap
- obsolete @scripts
- ^ Syntax ^ Replacement ^ Description ^ |''&>FILE'' and ''>&FILE'' |''>FILE 2>&1'' |This redirection syntax is short for ''>FILE 2>&1'' and originates in the C Shell. The latter