June 2017
Intermediate to advanced
478 pages
13h 14m
English
You should begin by creating a staging directory on your host computer where you can assemble the files that will eventually be transferred to the target. In the following examples, I have used ~/rootfs. You need to create a skeleton directory structure in it, for example, take a look here:
$ mkdir ~/rootfs$ cd ~/rootfs$ mkdir bin dev etc home lib proc sbin sys tmp usr var$ mkdir usr/bin usr/lib usr/sbin$ mkdir -p var/log
To see the directory hierarchy more clearly, you can use the handy tree command used in the following example with the -d option to show only the directories:
$ tree -d.├── bin├── dev├── etc├── home├── lib├── proc├── sbin├── sys├── tmp├── usr│ ├── bin│ ├── lib│ └── sbin├── va└── var └── log
Read now
Unlock full access