How to declare a serial device by USB connection on Arduino

PaulS:

So may i know how to declare its baud rate,port,etc...on arduino?

Set the baud rate using Serial.begin(). The port is defined by which pins you connect to. The USB cable is connected, via a USB-to-serial chip, to pins 0 and 1 which are hardcoded to the Serial instance.

1st, thanks for replied!!:slight_smile: sorry for a beginner question:
as i am just using USB connection, connect a board to Arduino Uno by USB. how do i defined the port and other info such as in a serial terminal in linux? my code:

EVAL_SERIAL_RATE = 57600;
void setup() {
  Serial.begin(EVAL_SERIAL_RATE);
}
void loop() {
  if (Serial.available() {
    byte test = Serial.read();
    Serial.print("I get first at: ");
    Serial.println(test); 
  }
}

so i now i only know how to begin a baud rate, how about the port?