File tree 1 file changed +5
-5
lines changed
one-liners/hardware_management-output_only/cpu_information
1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 6
6
# CPU property information retrieval one-liners
7
7
#
8
8
9
- # Get the vendor name of the current CPU
9
+ # Get the vendor name of the current CPU.
10
10
cat /proc/cpuinfo | grep vendor | uniq | awk '{print $3}'
11
11
12
- # Get the model name of the current CPU
12
+ # Get the model name of the current CPU.
13
13
cat /proc/cpuinfo | grep 'model name' | uniq | cut -d' ' -f3-
14
14
15
- # Get the architecture of the current CPU
15
+ # Get the architecture of the current CPU.
16
16
lscpu | grep 'Architecture' | awk '{print $2}'
17
17
18
- # Get the subarchitecture of the current CPU
18
+ # Get the subarchitecture of the current CPU.
19
19
gcc -march=native -Q --help=target | grep march | awk '{print $2}'
20
20
21
- # Get the assembler name of the current CPU
21
+ # Get the assembler name of the current CPU.
22
22
gcc -march=native -Q --help=target | grep masm= | awk '{print $2}' | head -1
23
23
You can’t perform that action at this time.
0 commit comments