This preview shows pages 1–2. Sign up to view the full content.
This preview has intentionally blurred sections. Sign up to view the full version.View Full Document
Unformatted text preview: ECE4305: Software-Defined Radio Systems and Analysis Quick Reference Sheet rev. 3 1 Linux 1.1 Helpful Commands sudo Run commands with administrative privileges. (Note: For security reasons, you cannot access your network-mapped home directory when you run com- mands as root on the machines in AK 227. If you use sudo to run a single command as root, you might see error messages because it cannot access GNU Ra- dio configuration files in your home directory. To avoid these error messages, simply use sudo -i or sudo su to log in to run multiple commands as root. Or, use sudo -H to force sudo to use roots home directory instead.) sudo nautilus Nautilus is GNOMEs file browser. If you want root privileges when browsing your files, start the file browser from the command line using sudo, rather than starting it from the main menu. aliases Aliases allow you to create shortcut commands. For example, if you always find yourself chang- ing to the /opt/gnuradio/gr-utils/src/python directory, you might consider creating the alias grutils for cd /opt/gnuradio/gr- utils/src/python. This would allow you to change to this directory simply by typing gru- tils on the command line. If you define an alias on the command line, the bash shell will remember it until you close the terminal. If you want the shell to remember your aliases for future sessions, store them in either the /.bashrc or the /.bash login files. These scripts automatically get executed and load your aliases when you open a new terminal. You can use the bash built-in commands source or . to reload these configuration files after adding new aliases. ifconfig Configure network interfaces. Use the -a option to list all interfaces Use up/down to enable/disable interfaces tail -f < filename > Run this command to display the end of a file in the terminal. The -f option stands for follow, which means that tail will keep printing lines as they are added to the file. This is a good way to view the out- put file in real-time as a GNU Radio system writes data into it. background jobs Here is how to manage jobs in the bash shell: To run a job in the background, type an & at the end of the line when running the command. grc top.grc & To see a list of jobs, run the jobs command. To place a job in the background, press Control-z in the terminal and then run the bash built-in command bg. To place a job in the foreground, run the bash built-in command fg followed by the job num- ber. Alternatively, type a % sign followed by the job number....
View Full Document
This note was uploaded on 01/13/2011 for the course ECE 4305 taught by Professor Wy during the Spring '10 term at WPI.
- Spring '10