Difference: UnixFlorianUhlig (1 vs. 6)

Revision 6
17 Sep 2014 - Main.FlorianUhlig
Line: 1 to 1
 
META TOPICPARENT name="HomepageFlorianUhlig"

Usefull Unix Commands

Line: 7 to 7
 
  • Find all source files and search for string suche in this files. Print out filename
    • find . -iname '*.cxx' -exec grep -iH suche "{}" ";"
Added:
>
>
  • Find compile flags which are active by default
    • gcc -march=native -Q --help=target -v
 
  • Show all defined preprocessor macros for a specific compiler
    • echo | gcc -E -dM -
Changed:
<
<
    • gcc -dM -E - < /dev/null
>
>
    • gcc -dM -E - < /dev/null
 
    • clang -dM -E -x c /dev/null

  • Monitor CPU usage and Memory
    • top -b -p | tee
Changed:
<
<
    • grep | cut -c 42-46 [CPU usage]
    • grep | cut -c 47-52 [Memory]
>
>
    • grep | cut -c 42-46 [CPU usage]
    • grep | cut -c 47-52 [Memory]
 

  • iostat, vmstat, sar ???
Revision 5
24 Oct 2013 - Main.FlorianUhlig
Line: 1 to 1
 
META TOPICPARENT name="HomepageFlorianUhlig"

Usefull Unix Commands

Line: 10 to 10
 
  • Show all defined preprocessor macros for a specific compiler
    • echo | gcc -E -dM -
    • gcc -dM -E - < /dev/null
Added:
>
>
    • clang -dM -E -x c /dev/null
 

  • Monitor CPU usage and Memory
    • top -b -p | tee
Revision 4
29 Apr 2010 - Main.FlorianUhlig
Line: 1 to 1
 
META TOPICPARENT name="HomepageFlorianUhlig"

Usefull Unix Commands

Line: 9 to 9
 

  • Show all defined preprocessor macros for a specific compiler
    • echo | gcc -E -dM -
Added:
>
>
    • gcc -dM -E - < /dev/null
 

  • Monitor CPU usage and Memory
    • top -b -p | tee
Revision 3
15 Jan 2009 - Main.FlorianUhlig
Line: 1 to 1
 
META TOPICPARENT name="HomepageFlorianUhlig"

Usefull Unix Commands

Line: 10 to 10
 
  • Show all defined preprocessor macros for a specific compiler
    • echo | gcc -E -dM -

Added:
>
>
  • Monitor CPU usage and Memory
    • top -b -p | tee
    • grep | cut -c 42-46 [CPU usage]
    • grep | cut -c 47-52 [Memory]

  • iostat, vmstat, sar ???
 

-- FlorianUhlig - 27 Sep 2007
Revision 2
07 Jan 2009 - Main.FlorianUhlig
Line: 1 to 1
 
META TOPICPARENT name="HomepageFlorianUhlig"

Usefull Unix Commands

Line: 7 to 7
 
  • Find all source files and search for string suche in this files. Print out filename
    • find . -iname '*.cxx' -exec grep -iH suche "{}" ";"
Added:
>
>
  • Show all defined preprocessor macros for a specific compiler
    • echo | gcc -E -dM -

 

-- FlorianUhlig - 27 Sep 2007
 
This site is powered by FoswikiCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding CBM Wiki? Send feedback
Imprint (in German)
Privacy Policy (in German)