Friday, October 7, 2016

Linux Commands

To Know the OS name in linux:

# uname

To know the linux kernel version & system processor detail:

# uname - mrs

To know complete version details of linux system:

# cat /proc/version

To print the list of processes running in the system:

# ps -A

To search and print details about one running process:

# ps -ef | grep "processname"



Thursday, October 6, 2016

Serial Port Communication Commands

To find list of serial port

# dmesg | grep tty

To find list of serial ports of the current linux system

# setserial -g /dev/ttyS[0123]

To find the list of groups with which current user is associated

# groups ${USER}

To add user "test" to a group "dialout"

#usermod -a -G dialout test

Command to check the signals of the Serial port

#cat /proc/tty/driver/serial

This will display the information about, RTS | DTR | DSR | CTS | CD signals.