Follow below steps in sequence
Freebsd version
root@freebsdnew:~ # uname -a
FreeBSD freebsdnew 8.4-RELEASE FreeBSD 8.4-RELEASE #0 r251259: Sun Jun 2 21:26:57 UTC 2013 root@bake.isc.freebsd.org:/usr/obj/usr/src/sys/GENERIC amd64
You will get the p4 binary
P4 config
[root@freebsdnew ~]# echo $P4CONFIG
/root/.p4env
[root@freebsdnew ~]# cat /root/.p4env
P4PORT=p4server.mycompany.net:1997
P4USER=thisuser
P4CLIENT=thisuser_freebsd
P4DIFF=vimdiff
P4PASSWD=abcd
p4 command output
[root@freebsdnew ~]# p4
Perforce -- the Fast Software Configuration Management System.
p4 is Perforce's client tool for the command line. Try:
p4 help simple list most common commands
p4 help commands list all standard commands
p4 help command help on a specific command
p4 help administration help on specialized administration topics
p4 help charset help on character set translation
p4 help configurables list server configuration variables
p4 help environment list environment and registry variables
p4 help filetypes list supported file types
p4 help jobview help on jobview syntax
p4 help networkaddress help on network address syntax
p4 help revisions help on specifying file revisions
p4 help streamintro introduction to streams
p4 help usage generic command line arguments
p4 help views help on view syntax
p4 help replication help on specialized replication topics
p4 help dvcs help on decentralized Perforce configurations
p4 help legal legal and license information
The full user manual is available at http://www.perforce.com/manual.
Server 2015.1/1126382.
Its ready for use.
https://www.perforce.com/downloads/helix#clients
https://www.perforce.com/perforce/r12.2/manuals/p4guide/01_install.html