Ubiquiti UniFi Command-Line Interface Reference
Please share with your friends...
  • 2
  • 1
  •  
  •  
  • 1
  • 1
  •  
  •  
  •  
  •  
    5
    Shares


⇐ BackPageNext ⇒
Commands

F

ABCDEFGHIJKLMNOPQRSTUVWXYZ


factorytest
 factorytest <test>

 Supported tests:
        setup
        flash
        throughput


false

Return an exit code of FALSE (1)

false


fgrep
fgrep


find

Search for files. The default PATH is the current directory, default EXPRESSION is ‘-print’

find [PATH...] [EXPRESSION]

        -follow         Dereference symlinks
        -xdev           Don't descend directories on other filesystems
        -maxdepth N     Descend at most N levels. -maxdepth 0 applies
                        tests/actions to command line arguments only
        -mindepth N     Do not act on first N levels
        -name PATTERN   File name (w/o directory name) matches PATTERN
        -iname PATTERN  Case insensitive -name
        -path PATTERN   Path matches PATTERN
        -regex PATTERN  Path matches regex PATTERN
        -type X         File type is X (X is one of: f,d,l,b,c,...)
        -perm NNN       Permissions match any of (+NNN), all of (-NNN),
                        or exactly (NNN)
        -mtime DAYS     Modified time is greater than (+N), less than (-N),
                        or exactly (N) days
        -mmin MINS      Modified time is greater than (+N), less than (-N),
                        or exactly (N) minutes
        -newer FILE     Modified time is more recent than FILE's
        -inum N         File has inode number N
        -user NAME      File is owned by user NAME (numeric user ID allowed)
        -group NAME     File belongs to group NAME (numeric group ID allowed)
        -depth          Process directory name after traversing it
        -size N[bck]    File size is N (c:bytes,k:kbytes,b:512 bytes(def.)).
                        +/-N: file size is bigger/smaller than N
        -print          Print (default and assumed)
        -print0         Delimit output with null characters rather than
                        newlines
        -exec CMD ARG ; Run CMD with all instances of {} replaced by the
                        matching files
        -prune          Stop traversing current subtree
        -delete         Delete files, turns on -depth option
        (EXPR)          Group an expression


free

Display the amount of free and used system memory.

free
Example: UniFi AP AC (UAP-ACv2)

The following examples show how to display the amount of free and used system memory.

# free
              total         used         free       shared      buffers
  Mem:       126032        40220        85812            0         3852
 Swap:            0            0            0
Total:       126032        40220        85812
[_/su_spoiler]
Example: UniFi Switch 48 750W (USW-48P-750)

The following examples show how to display the amount of free and used system memory.

# free
             total         used         free       shared      buffers
Mem:        256608        93228       163380            0            0
-/+ buffers:              93228       163380
Swap:            0            0            0
[_/su_spoiler]


fsync

Write files’ buffered blocks to disk

fsync [OPTIONS] FILE...

        -d      Avoid syncing metadata


fuser

Find processes which use FILEs or PORTs

fuser [OPTIONS] FILE or PORT/PROTO

        -m      Find processes which use same fs as FILEs
        -4      Search only IPv4 space
        -6      Search only IPv6 space
        -s      Silent: just exit with 0 if any processes are found
        -k      Kill found processes (otherwise display PIDs)
        -SIGNAL Signal to send (default: TERM)


fw_printenv

fw_printenv/fw_setenv, a command line interface to U-Boot environment

fw_printenv [-n] [variable name]
fw_setenv [variable name] [variable value]
fw_setenv -s [ file ]
fw_setenv -s - < [ file ]

The file passed as argument contains only pairs name / value
Example:
# Any line starting with # is treated as comment

              netdev         eth0
              kernel_addr    400000
              var1
              var2          The quick brown fox jumps over the lazy dog

A variable without value will be dropped. It is possible
to put any number of spaces between the fields, but any
space inside the value is treated as part of the value itself.
Example

The following examples show how to display the U-Boot environment.

# fw_printenv
bootcmd=run ubntappinit ubntboot
bootdelay=3
ipaddr=192.168.1.20
serverip=192.168.1.254
loadaddr=0x01000000
ethaddr=00:90:4c:06:a0:00
bootargs=console=ttyS0,115200 mem=128M@0x0 mem=128M@0x68000000 mtdparts=spi1.0:768k(u-boot),64k(u-boot-env),64k(shmoo),15360k(kernel0),15424k(kernel1),1024k(cfg),64k(EEPROM)
mtdparts=mtdparts=spi1.0:768k(u-boot),64k(u-boot-env),64k(shmoo),15360k(kernel0),15424k(kernel1),1024k(cfg),64k(EEPROM)
ubntboot=bootm 0x01000000
ubntappinit=go ${ubntaddr} uappinit;go ${ubntaddr} ureset_button;urescue;go ${ubntaddr} uwrite;go ${ubntaddr} ubntboot
ubntaddr=0x67030020
[_/su_spoiler]


fwupdate
fwupdate


fwupdate.real
fwupdate.real  [file [-d]]

        -c                  check firmware file
        -m                  write firware to the flash
ABCDEFGHIJKLMNOPQRSTUVWXYZ
⇐ BackPageNext ⇒

Ubiquiti UniFi Command-Line Interface Reference

Please share with your friends...
  • 2
  • 1
  •  
  •  
  • 1
  • 1
  •  
  •  
  •  
  •  
    5
    Shares
Tagged on:                     

Leave a Reply