1. Add user work
[Root @ localhost ~] #useradd -G root -g root -d / home / arm arm 2. establish a working directory
[arm@localhost arm]$mkdir dev_home [arm@localhost arm]$cd dev_home
[arm@localhost arm]$mkdir bootldr btools debug doc images kernel localapps \ rootfs sysapps tmp tools
[arm@localhost arm]$tree -L 1
.
|-- bootldr
|-- btools
|-- debug
|-- doc
|-- images
|-- kernel
| - localapps
|-- rootfs
| - sysapps
|-- tmp
`- tools can be seen as a tree structure. Note: tree command
3. Set up the environment variable settings script
[Arm @ localhost arm] $ we env_sh
#!/bin/bash PRJROOT=~/dev_home KERNEL=$PRJROOT/kernel ROOTFS=$PRJROOT/rootfs LAPP=$PRJROOT/localapps DOC=$PRJROOT/doc TMP=$PRJROOT/tmp
export PRJROOT KERNEL LAPP ROOTFS
export PATH=/usr/local/arm/3.4.4/bin:$PATH
4. Start environment variables landing
[arm@localhost arm]$vi ~/.bashrc
. ~/dev_home/env_sh
Re-login arm user, environmental variables [arm @ localhost arm] $ su arm