If you like BoxMatrix then please contribute Supportdata, Supportdata2, Firmware and/or Hardware (get in touch).
My metamonk@yahoo.com is not reachable by me since years. Please use hippie2000@webnmail.de instead.

0
U

Property:cmdline

From BoxMatrix
(Redirected from cmdline)


BoxMatrix >> System >> cmdline @ BoxMatrix   -   IRC-Chat   -   Translate: de es fr it nl pl
News Selectors Models Accessories Components Environment Config Commands System Webif Software Develop Lexicon Community Project Media

Devices Filesystems Partitions Sockets Netlink Pipes Interfaces Bridges Ports Events Sources Sinks AVMIPC Processes Watchdogs Memory Slab Vmalloc ProcFS SysFS Research

Procfs-Object

Goto:   Kernel  -  Process  -  Examples  -  Dependencies   -   Model-Matrix   -   Help Supportdata2   -   SMW-Browser

Details

cmdline contains the Kernel or the process command line.

This is an "in-section" name collision covering 2 completely different files:   -   (this will be splitted one day)

Kernel

/proc/cmdline contains the arguments the Bootloader passes to the Kernel.

This is a printable space delimited single line string, which consists of keywords or assignments.
In FRITZ!OS it is passed to the Kernel by ADAM2 or EVA.

This file is used in many places in FRITZ!OS, see the kernel_args article.

Excerpt from the proc(5) man page:

/proc/cmdline

       Arguments passed to the Linux kernel at boot time.  Often
       done via a boot manager such as lilo(8) or grub(8).

Process

/proc/<pid>/cmdline contains the arguments which are passed to the exe of a process.

This is an array of zero terminated strings or a zero size content.

Excerpt from the proc(5) man page:

/proc/[pid]/cmdline

       This read-only file holds the complete command line for
       the process, unless the process is a zombie.  In the
       latter case, there is nothing in this file: that is, a
       read on this file will return 0 characters.  The command-
       line arguments appear in this file as a set of strings
       separated by null bytes ('\0'), with a further null byte
       after the last string.

       If, after an execve(2), the process modifies its argv
       strings, those changes will show up here.  This is not the
       same thing as modifying the argv array.

       Furthermore, a process may change the memory location that
       this file refers via prctl(2) operations such as
       PR_SET_MM_ARG_START.

       Think of this file as the command line that the process
       wants you to see.

Examples

init, cat and ls are symlinks to busybox. The exe just knows the binary, cmdline knows the symlink.

7530 fw 7.29 examples:

root@fritz1:/var/mod/root# cat /proc/cmdline                          

clk_ignore_unused audit=1 slub_debug=FL

root@fritz1:/var/mod/root# cat /proc/1/cmdline | tr '\000' ' ' && echo
 
init 

root@fritz1:/var/mod/root# ls -l /proc/1/exe
   
lrwxrwxrwx    1 root     root             0 Nov 22 02:53 /proc/1/exe -> /bin/busybox
 
root@fritz1:/var/mod/root# cat /proc/self/cmdline | tr '\000' ' ' && echo

cat /proc/self/cmdline 

root@fritz1:/var/mod/root# ls -l /proc/self/exe

lrwxrwxrwx    1 root     root             0 Nov 23 17:43 /proc/self/exe -> /bin/busybox

3050 fw 4.07 examples:

# cat /proc/cmdline                          

# cat /proc/1/cmdline | tr '\000' ' ' && echo
 
init 

# ls -l /proc/1/exe
   
lrwxrwxrwx    1 root     root            0 Sep 11 08:57 /proc/1/exe -> /bin/busybox
 
# cat /proc/self/cmdline | tr '\000' ' ' && echo

cat /proc/self/cmdline 

# ls -l /proc/self/exe

lrwxrwxrwx    1 root     root            0 Sep 11 09:00 /proc/self/exe -> /bin/busybox

Dependencies

Daily updated index of all dependencies of this object. Last update: GMT.
A ** in the Mod column marks info from Supportdata2 probes, which will always stay incomplete.
A - in the Mod column marks manual research, the Firmware then shows where the Object occurs, not the Relation.

Relation Typ Object Mod Firmware Info Origin
0 dependencies for this object

Model-Matrix

Daily updated index of the presence, path and size of this object for each model. Last update: 2024-04-20 04:33 GMT.
Showing all models using this object. Click any column header (click-wait-click) to sort the list by the respective data.
The (main/scrpn/boot/arm/prx/atom) label in the Model column shows which CPU is meant for models with multiple Linux instances.
Note that this list comes from Supportdata2 probes, which can have arbitrary settings and come from different firmware versions.
It doesn't say much if a model is not listed here. It may be a missing supportdata2 file or just a disabled feature.

Help Supportdata2

The data in this article is incomplete since it was manually collected using the Supportdata2 project.

Unlike the Supportdata-Probes which have been collected for years Supportdata2 is brand new and only has a few probes.
If you have access to a shell then please help to extend the Supportdata2 collection to improve this data.

It's easy and it's done in minutes. Please send created data as an Email attachment to the address listed here. Thanks!

SMW-Browser

Information is currently being retrieved from the backend.
 

Synonyms

Showing 1 related property.

c