uClinux NEEK BSP
Network Utility
5.7 Build New User Application Using SLS IP Drivers
To build a new user application using SLS IP drivers refer
DRIVERSAPI.txt
located at /
Docs
.
5.8 Shell Commands
Using Shell commands you can perform operations on the uClinux on the NEEK
board. Shell is the basic application on the Linux system, default shell provided in
BSP is “sh”. “sh” uses the current directory as the prompting string. Commands
can be executed under shell. (It works the same way as PC Linux). Key in help
under shell will display the internal commands provided by shell.
Table below lists the shell commands useful while debugging:
Command
Definition
Description
cat
cat filename
Shows file on screen
cd
cd [directory]
Change current directory
chgrp
chgrp GROUP FILE…
Change the group membership of each
FILE to GROUP
chmod
chmod mode file/dir
Change file/directory mode
chown
chown group:user file/dir
Change file/directory own
cmp
cmp file1 file2
Compares two files
date
date
[MMDDhhmm[YYYY]]
Get/set date
cp
cp file1 file2
Copy source to destination
df
df [device]
Shows information about the filesystem on
which each FILE resides, or all filesystems
by default
echo
echo arguments [>filename] Output the ARGs or redirect to file
exec
exec file
Exec FILE, replacing this shell with the
specified program
exit
exit [N]
Exit the shell with a status of N. If N is
omitted, the exit status is that of the last
command executed
free
free
Shows memory status
help help
Shows
help
message
hexdump
hexdump file
Hex dump file
hostname
hostname
Shows host name
Kill
kill [-s sigspec | -n signum |
-sigspec] [pid | job]…\n or
kill -| [sigspec]
Sends signal to process
System Level Solutions
33