Pour configurer nano
editer /etc/nanorc pour tout le systeme
ou ~/.nanorc pour son user
AFFICHER LE NUMERO DE LA LIGNE PAR DEFAUT
ajouter :
set const
find /usr -name " *.c " -print
Pour connaître les derniers fichiers modifiés dans les 3 derniers jours dans toute l'arborescence (/), vous devez taper :find / -mtime 3 -printVous pouvez chercher dans toute l'arborescence, les fichiers ordinaires appartenant à olivier, dont la permission est fixée à 755, on obtient :find / -type f -user olivier -perm 755 -printRecherche des fichiers qui obéissent à la fois à la condition a pour nom core et à la condition a une taille supérieure à 1Mo.find . \ (-name core -a size +2000 \ ) -printExemple recherche des fichiers ayant pour nom core, suivi de l'effacement de ces fichiers.find . -name core -exec rm '{}' \;En tapant cette commande vous allez rechercher dans le répertoire courant tous les fichiers normaux (sans les répertoires, fichiers spéciaux), et rechercher dans ces fichiers tous ceux contenant la chaîne toto.find . -type f -print | xargs grep totofind / -type f ! -path '/proc/*' ! -path '/sys/*' -print | xargs grep totohttp://www.funix.org/fr/unix/grep-find.htm
#/etc/samba/smb.conf
[public]
comment = Public Shares
browsable = yes
path = /data/pub
public = yes
writable = no
write list = user_who_can_write guest ok = yes [global]
#...
guest account = nobody map to guest = Bad Password
---
AND
This will create the user with no password :
# smbpasswd -an nobody
| validate | validate the project is correct and all necessary information is available. |
| initialize | initialize build state, e.g. set properties or create directories. |
| generate-sources | generate any source code for inclusion in compilation. |
| process-sources | process the source code, for example to filter any values. |
| generate-resources | generate resources for inclusion in the package. |
| process-resources | copy and process the resources into the destination directory, ready for packaging. |
| compile | compile the source code of the project. |
| process-classes | post-process the generated files from compilation, for example to do bytecode enhancement on Java classes. |
| generate-test-sources | generate any test source code for inclusion in compilation. |
| process-test-sources | process the test source code, for example to filter any values. |
| generate-test-resources | create resources for testing. |
| process-test-resources | copy and process the resources into the test destination directory. |
| test-compile | compile the test source code into the test destination directory |
| process-test-classes | post-process the generated files from test compilation, for example to do bytecode enhancement on Java classes. For Maven 2.0.5 and above. |
| test | run tests using a suitable unit testing framework. These tests should not require the code be packaged or deployed. |
| prepare-package | perform any operations necessary to prepare a package before the actual packaging. This often results in an unpacked, processed version of the package. (Maven 2.1 and above) |
| package | take the compiled code and package it in its distributable format, such as a JAR. |
| pre-integration-test | perform actions required before integration tests are executed. This may involve things such as setting up the required environment. |
| integration-test | process and deploy the package if necessary into an environment where integration tests can be run. |
| post-integration-test | perform actions required after integration tests have been executed. This may including cleaning up the environment. |
| verify | run any checks to verify the package is valid and meets quality criteria. |
| install | install the package into the local repository, for use as a dependency in other projects locally. |
| deploy | done in an integration or release environment, copies the final package to the remote repository for sharing with other developers and projects. |