Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

share|improve this question

cat /proc/cmdline


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
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


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.