How do you get the Linux kernel boot command after boot?

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


cat /proc/cmdline

OR

dmesg|grep "Kernel command line"