Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

How do you get the Linux kernel command line after boot (e.g. from a shell)?

share|improve this question

2 Answers 2

cat /proc/cmdline

OR

dmesg|grep "Kernel command line"

share|improve this answer
    
Note that /proc/cmdline is much more reliable, since the dmesg buffer size is limited. –  CesarB Jun 14 '09 at 20:27

Press ctrl+alt+f1

share|improve this answer
1  
It will have scrolled off the screen, and you lose the scrollback buffer when you change VTs. –  camh Jun 14 '09 at 13:12

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.