Tags: fichier

Sort by: Date / Title /

  1. 1 week ago by cyo
    Pour utiliser sous Windows, installer find : http://gnuwin32.sourceforge.net/packages/findutils.htm et renommer 'find.exe' différemment pour qu'il ne soit pas en conflit avec la commande DOS du même. Nécessite aussi http://gnuwin32.sourceforge.net/packages/libintl.htm et http://gnuwin32.sourceforge.net/packages/libiconv.htm
    find -type f -mtime -1 -print0 | xargs -0 ls -lt>_dernieres_modifs.txt
  2. 2 weeks ago by cyo
    Pour écrire ces informations dans un fichier : > dir *.* /b /s >liste.txt
    1. dir *.* /b /s
  3. 2 months ago by matt
    -e filename
        True if filename exists.
    -d filename
        True if filename exists and is a directory.
    -f filename
        True if filename exists and is a plain file.
    -h filename
        True if filename exists and is a symbolic link.
    -r filename
        True if filename exists and is readable.
    -w filename
        True if filename exists and is writable.
    -n string
        True if the length of string is non-zero.
    -z string
        True if the length of string is zero.
    string
        True if string is not the empty string.
    s1 = s2
        True if the strings s1 and s2 are identical.
    s1 != s2
        True if the strings s1 and s2 are not identical.
    n1 -eq n2
        True if the numbers n1 and n2 are equal.
    n1 -ne n2
        True if the numbers n1 and n2 are not equal.
    n1 -gt n2
        True if the number n1 is greater than n2.
    n1 -ge n2
        True if the number n1 is greater than or equal to n2.
    n1 -lt n2
        True if the number n1 is less than n2.
    n1 -le n2
        True if the number n1 is less than or equal to n2.
    ! expression
        Negates expression, that is, returns true iff expression is false.
    expr1 -a expr2
        True if both expressions, expr1 and expr2 are true.
    expr1 -o expr2
        True if either expression, expr1 or expr2 is true.
    ( expression )
        True if expression is true. This allows one to nest expressions.
  4. 5 months ago by cyo
    1. Crée un fichier 'sql.tar.gz' à partir de logs d’erreur 'sql-2008-03*' :
    2. tar cvfz sql.tar.gz sql-2008-03*
    3.  
    4. puis déplace le fichier dans le répertoire supérieur :
    5. mv sql.tar.gz ../
  5. 6 months ago by cyo
    Sous WinSCP, cette commande permet de changer les droits et le propriétaire d'un ou plusieurs fichiers et/ou répertoires : Dans le cas ci-dessus on change pour l'utilisateur 'utilisateur' et le groupe 'ftp'; puis on change les droits avec la valeur 664. Il faut bien entendu avoir les droits suffisants pour que cela fonctionne.
    1. chown utilisateur:ftp !&; chmod 0664 !&
  6. 10 months ago by spirit
    1. du -h /chemin/vers/fichier
  7. 11 months ago by neorom
    #découpage du fichier nom_file en fichiers de 1Go
    split -b 1024m nom_file
    #recollage
    cat nom_file1 nom_file2 > nom_file
  8. sponsorised links

First / Previous / Next / Last / Page 1 of 1 (7 posteets)