Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revision Both sides next revision
linux:commands [2011/09/15 09:03]
cyril
linux:commands [2012/01/16 15:10]
cyril
Line 1: Line 1:
-====== Current Commands ======+====== Usual Commands ======
  
 ===== Links ===== ===== Links =====
Line 62: Line 62:
 | ''awk 'NR==1 { t=$1 } NR>1 { dt=t-$1; t=$1; print dt; }' <file-in>'' | output the difference between two consecutive lines | | ''awk 'NR==1 { t=$1 } NR>1 { dt=t-$1; t=$1; print dt; }' <file-in>'' | output the difference between two consecutive lines |
 | ''cat <file> | tr '[:lower:]' '[:upper:]' '' | convert lowercase to uppercase (and a lot more with tr) | | ''cat <file> | tr '[:lower:]' '[:upper:]' '' | convert lowercase to uppercase (and a lot more with tr) |
 +| ''date +"%Y/%m/%d %H:%M:%S" | tr '\012' ' ' >> log.log'' | write date in a file without the last line return |
 | ''cat <file> | wc -l'' | count number of lines (and a lot more with wc) | | ''cat <file> | wc -l'' | count number of lines (and a lot more with wc) |
 | iconv -f iso-8859-15 -t utf8 <file> | convert file content from encoding latin9 to utf8 (see also ''recode'') | | iconv -f iso-8859-15 -t utf8 <file> | convert file content from encoding latin9 to utf8 (see also ''recode'') |
Line 67: Line 68:
 | paste | merge files by concatenating columns | | paste | merge files by concatenating columns |
 ^  Programming  ^^ ^  Programming  ^^
-| nm [-D] / ldd / readelf [-s] | check infos about link and symbols in exe and libs |+| nm [-D] / objdump / ldd / readelf [-s] | check infos about link and symbols in exe and libs |
 | strace | list system calls a program issues | | strace | list system calls a program issues |
  
 +tr '\012' ' '
linux/commands.txt ยท Last modified: 2024/04/19 13:59 by cyril
CC Attribution-Share Alike 4.0 International
Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0