
Stargate Developer’s Guide
Wireless Sensor Networks
Doc. # 7430-0317-13 Rev. B
Page 37
6
Linux Console Commands
6.1 cd – change directory (folder)
The cd command is used to change the current folder.
Example:
$ cd /usr/lib
6.2 ls – list files
The ls command is used to list the files located in the current folder.
Example:
$ ls
armsf* postgres* setup-task-db.sh*
6.3 pwd – print working directory (folder)
The pwd command will print the current working folder.
Example:
$ pwd
/usr/lib
6.4 scp – secure copy
The
scp
command is used to copy files between Unix/Linux based environments.
This example will copy all matching files in the current folder to the folder on the remote machine located
at address 192.168.2.3 using the remote user
root
; you will be prompted for the remote user root password
– the command will then complete:
$ scp *.tgz [email protected]:/usr/src
6.5 ps – list current processes
The
ps
command is used to list the currently running processes.
This example will list all the running processes:
$ ps –A
PID TTY TIME CMD
1 ? 00:00:06 init
2 ? 00:00:00 keventd
3 ? 00:00:00 ksoftirqd_CPU0
4 ? 00:00:00 kswapd
5 ? 00:00:00 bdflush
6 ? 00:00:00 kupdated
7 ? 00:00:00 mtdblockd
8 ? 00:00:00 jffs2_gcd_mtd3
120 ? 00:00:00 cardmgr
135 ? 00:00:00 sshd
144 ? 00:00:00 khubd
179 ? 00:00:00 postmaster
Summary of Contents for Stargate
Page 1: ...Stargate Developer s Guide Rev B January 2006 Document 7430 0317 13 ...
Page 50: ......
Page 51: ......