How to show full name on panel?

I’m new with Ubuntu. When i run this command on terminal:
$getent passwd $user|cut -d ':' -f 5|cut -d ',' -f 1
It return my account full name perfectly. But I can’t do that same thing with command applets to show my full name on panel.
Please tell me, is there any way else to show my full name on panel?

Hi
Write your command into a file named for example name.sh:

#! /bin/bash
getent passwd $user | cut -d ':' -f 5 | cut -d ',' -f 1

Store this file in your home folder in a subfolder named "bin", then make it executable using:

chmod +x ~/bin/name.sh

Then as the command when setting up the applet, use the full path to this file:

/home/you/bin/name.sh

3 Likes

Thank you. It works like a charm.