Step 1
Open a terminal.
- To open a terminal in Ubuntu, select Applications, then Accessories, then Terminal.
Step 2
Type hostname at the command line.
- This will print your computer name on the next line.
Open a terminal.
Type hostname at the command line.