Password: taptaptap
path/to/fileToSend 30% 2959MB 3.8MB/s 29:23 ETA
Flag | Usage |
---|---|
-b --bytes | enable byte counter and display the total amount of data transferred so far |
-W --wait | wait until the first byte has been transferred before showing any progress information or calculating any ETAs |
pkill [process selection options] [kill options]
Literally : process kill. Actually sends a kill signal to the selected process(es).
pkill has a fake twin brother : pgrep : one selects, the other kills .
They share the process selection options, so the workflow is usually :
Flag | Usage |
---|---|
-ssignal --signal signal |
Flag | Usage |
---|---|
-d --delete | delete a user's password (make it empty) |
-i days --inactive days |
This option is used to disable an account after the password has been expired for a number of days. After a user account has had an expired password for days days, the user may no longer sign on to the account. |
-l --lock | lock the password of the named account by changing the encrypted password into an invalid string in /etc/password. This is done by prefixing the encrypted string with an !.
passwd --lock does not actually disable the account : details.
|
-S --status | Display account status information, consisting of 7 fields (see human-friendly equivalent : chage -l stuart) : |
-u --unlock | unlock the password of the named account. This option re-enables a password by removing the leading ! added by -l. |
-w days --warndays days |
Set the number of days of warning before a password change is required. days is the number of days prior to the password expiring that a user will be warned that his/her password is about to expire. |
bob:!:17547:0:99999:7::: new passwordless account is disabled
Enter new UNIX password: 123456 Retype new UNIX password: 123456 passwd: password updated successfully bob:$6$OXeqopLJ$8xicqHptSgZ/JuUFFV1az4keocSKSa53bAC9BFdMRqn1d92ltyXI1Mc2Vx2a708Jhsvszeduuvm/49/uPp6FP1:17547:0:99999:7::: the encrypted password
passwd: password expiry information changed.
bob:!$6$OXeqopLJ$8xicqHptSgZ/JuUFFV1az4keocSKSa53bAC9BFdMRqn1d92ltyXI1Mc2Vx2a708Jhsvszeduuvm/49/uPp6FP1:17547:0:99999:7::: the extra !
shows it's locked
passwd: password expiry information changed. bob:$6$OXeqopLJ$8xicqHptSgZ/JuUFFV1az4keocSKSa53bAC9BFdMRqn1d92ltyXI1Mc2Vx2a708Jhsvszeduuvm/49/uPp6FP1:17547:0:99999:7::: unlocked
passwd: password expiry information changed. bob::17547:0:99999:7::: empty password
Enter new UNIX password: 123456 Retype new UNIX password: 123456 passwd: password updated successfully bob:$6$nAmbe8KT$Dl3GXxWEjhRhuCPUA7dFyA7MZvAXtkAVJm14n0asq9OVioh1b1OK2mE0pYmTJqKtnY.kz5jGiaEJhs1JAEkTi.:17547:0:99999:7::: password is back. Same clear text, different crypted text
passwd: password expiry information changed. bob:!:17547:0:99999:7::: now empty AND locked
passwd: unlocking the password would result in a passwordless account. You should set a password with usermod -p to unlock the password of this account. bob:!:17547:0:99999:7::: no change : will not make a passwordless account
Enter new UNIX password: 123456 Retype new UNIX password: 123456 passwd: password updated successfully bob:$6$fyixHXv.$YT56pM8ExEtfsght7E8cxyP1EYmLwrBp1mW8sJ/ZVn8J.K0G9gQUC7mMycqXM0lAda1/.3KU.4Q56CtT8OtcH/:17547:0:99999:7::: password added
bob:$6$fyixHXv.$YT56pM8ExEtfsght7E8cxyP1EYmLwrBp1mW8sJ/ZVn8J.K0G9gQUC7mMycqXM0lAda1/.3KU.4Q56CtT8OtcH/:17547:0:99999:7::1:
(nothing)
Utilisation de /dev/sdb
Avertissement: L'alignement de la partition ainsi définie n'est pas optimal au niveau performance. Ignorer/Ignore/Annuler/Cancel?
(nothing)
Modèle: VMware Virtual disk (scsi) Disque /dev/sdb : 21,5GB Taille des secteurs (logiques/physiques): 512B/512B Table de partitions : msdos Disk Flags: Numéro Début Fin Taille Type Système de fichiers Fanions 1 1049kB 21,5GB 21,5GB primary
(nothing)
Modèle: VMware Virtual disk (scsi)
Disque /dev/sdb : 21,5GB
Taille des secteurs (logiques/physiques): 512B/512B
Table de partitions : msdos
Disk Flags:
Numéro Début Fin Taille Type Système de fichiers Fanions
parted -a optimal -s /dev/sdc -- mklabel msdos mkpart primary ext2 0 -1s
parallel (GNU Parallel) is not a standard shell command, but can be installed on Debian with the parallel package.
parallel is designed to build and execute shell command lines from standard input in parallel and should be straightforward for xargs and tee enthusiasts. parallel can often be used as a substitute for xargs or cat something | bash command.Flag | Usage |
---|---|
-j maxJobs | run maxJobs jobs simultaneously |
-i | Enable argument placeholder (see examples below) |
-n nbArgs | number of arguments to pass to a command at a time. Defaults to 1. |
Hello world 1 Hello world 2 Hello world 3
Hello world 1 Hello world 2 ... Hello world 10
hi hi hi bye 1 bye 2 bye 3
hi_1 hi_2 hi_3 bye bye bye
Start 1 Start 2 Start 3 Stop 1 Stop 2 Stop 3 Start 4 Start 5 Stop 4 Stop 5
START 1 START 2 START 3 STOP 1 STOP 2 STOP 3 START 4 START 5 STOP 4 STOP 5
pgrep options pattern
pgrep foo will match all processes whose executable file name (i.e. process name) matches foo. If foo is part of the path but not of the executable file name, pgrep will find no match. To match against the executable file name and path, consider -f.
Flag | Usage |
---|---|
-f --full | Match pattern against the full command line rather than just against the process name (binary) |
-l --list-name | Return the PID + process name |
-n --newest | Select only the newest (most recently started) of the matching processes |
-r processState --runstates processState |
|
-u UID -u bob | Match processes owned by UID / Bob (effective UID) |
-U UID -U bob | Match processes owned by UID / Bob (real UID) |
-v | Negates the matching |
Flag | Usage |
---|---|
(none) | ping until stopped by CTRL-c |
-b | broadcast ping : ping -b x.x.x.255 |
-c n | ping count : send n probe packets |
-f | ping flood : the local machine sends ping requests without waiting for an echo before sending the next request. For each sent request, a dot . is displayed, for each received echo, a backspace is displayed. |
-i n | ping with interval : wait n seconds between 2 packets. (By default, 1 second) |
-I sourceInterface | ping from Interface : sourceInterface can be either an interface name (eth0) or its IP address |
-v |
verbose mode
This mode outputs the following line twice :
ping: socket: Permission denied, attempting raw socket...
which is more a debug message than the sign something is going wrong. You can safely ignore it (details).
|
-R | Record Route |
-s packetSize | data-loaded ping : packetSize bytes (+ headers) are sent |
-w deadline | timeout, in seconds, before ping exits regardless of how many packets have been sent or received |
-W timeout | time to wait for a response, in seconds |
By default, ICMP_ECHO_REPLY is disabled in XP SP1.
file1, line1 file1, line2 file1, line3
file2, line1 file2, line2 file2, line3
file1, line1 file2,line1 file1, line2 file2, line2 file1, line3 file2, line3
Flag | Enabled by default | Usage |
---|---|---|
-0 --no-numerals | no number in the generated password | |
-1 | prints the generated passwords one per line | |
-A --no-capitalize | no capital letter in the generated password | |
-c --capitalize | yes | include at least one capital letter in the password |
-N number --num-passwords=number | generate number passwords instead of generating a screenful | |
-n --numerals | yes | include at least one number in the password |
-s --secure | generate completely random, hard-to-memorize passwords | |
-y --symbols | include at least one special character in the password |
character set | length | combinations vs length of password |
---|---|---|
[0-9] |
10 |
|
[a-z] |
26 |
|
This is for fun only : the words generated with the methods below —albeit created with a password generator— must NOT be used as passwords. Indeed, the syntax rules (lowercase characters only, patterns of alternating consonants / vowels) makes them extremely poor passwords.