OXIESEC PANEL
- Current Dir:
/
/
usr
/
lib
/
byobu
Server IP: 139.59.38.164
Upload:
Create Dir:
Name
Size
Modified
Perms
π
..
-
10/28/2024 06:50:42 AM
rwxr-xr-x
π
apport
1.51 KB
12/04/2017 01:46:48 PM
rwxr-xr-x
π
arch
916 bytes
12/04/2017 01:46:48 PM
rwxr-xr-x
π
battery
4.1 KB
12/04/2017 01:46:48 PM
rwxr-xr-x
π
color
1.04 KB
12/04/2017 01:46:48 PM
rwxr-xr-x
π
cpu_count
1.03 KB
12/04/2017 01:46:48 PM
rwxr-xr-x
π
cpu_freq
1.84 KB
12/04/2017 01:46:48 PM
rwxr-xr-x
π
cpu_temp
1.79 KB
12/04/2017 01:46:48 PM
rwxr-xr-x
π
custom
1.88 KB
12/04/2017 01:46:48 PM
rwxr-xr-x
π
date
990 bytes
12/04/2017 01:46:48 PM
rwxr-xr-x
π
disk
1.8 KB
12/04/2017 01:46:48 PM
rwxr-xr-x
π
disk_io
2.92 KB
12/04/2017 01:46:48 PM
rwxr-xr-x
π
distro
1.04 KB
12/04/2017 01:46:48 PM
rwxr-xr-x
π
ec2_cost
4.21 KB
12/04/2017 01:46:48 PM
rwxr-xr-x
π
entropy
1.06 KB
12/04/2017 01:46:48 PM
rwxr-xr-x
π
fan_speed
1.85 KB
12/04/2017 01:46:48 PM
rwxr-xr-x
π
hostname
1.3 KB
12/04/2017 01:46:48 PM
rwxr-xr-x
π
include
-
11/12/2024 10:20:16 AM
rwxr-xr-x
π
ip_address
3.02 KB
12/04/2017 01:46:48 PM
rwxr-xr-x
π
load_average
1.1 KB
12/04/2017 01:46:48 PM
rwxr-xr-x
π
logo
3.92 KB
12/04/2017 01:46:48 PM
rwxr-xr-x
π
mail
1.31 KB
12/04/2017 01:46:48 PM
rwxr-xr-x
π
memory
2.61 KB
12/04/2017 01:46:48 PM
rwxr-xr-x
π
menu
1.61 KB
12/04/2017 01:46:48 PM
rwxr-xr-x
π
network
3.1 KB
12/04/2017 01:46:48 PM
rwxr-xr-x
π
processes
1.13 KB
12/04/2017 01:46:48 PM
rwxr-xr-x
π
raid
1.4 KB
12/04/2017 01:46:48 PM
rwxr-xr-x
π
rcs_cost
3.55 KB
12/04/2017 01:46:48 PM
rwxr-xr-x
π
reboot_required
2.15 KB
12/04/2017 01:46:48 PM
rwxr-xr-x
π
release
1.83 KB
12/04/2017 01:46:48 PM
rwxr-xr-x
π
services
2.08 KB
12/04/2017 01:46:48 PM
rwxr-xr-x
π
session
1.28 KB
12/04/2017 01:46:48 PM
rwxr-xr-x
π
swap
1.75 KB
12/04/2017 01:46:48 PM
rwxr-xr-x
π
time
1.06 KB
12/04/2017 01:46:48 PM
rwxr-xr-x
π
time_binary
4.18 KB
12/04/2017 01:46:48 PM
rwxr-xr-x
π
time_utc
960 bytes
12/04/2017 01:46:48 PM
rwxr-xr-x
π
trash
1.13 KB
12/04/2017 01:46:48 PM
rwxr-xr-x
π
updates_available
5.03 KB
12/04/2017 01:46:48 PM
rwxr-xr-x
π
uptime
1.64 KB
12/04/2017 01:46:48 PM
rwxr-xr-x
π
users
1.51 KB
12/04/2017 01:46:48 PM
rwxr-xr-x
π
whoami
959 bytes
12/04/2017 01:46:48 PM
rwxr-xr-x
π
wifi_quality
1.85 KB
12/04/2017 01:46:48 PM
rwxr-xr-x
Editing: uptime
Close
#!/bin/sh -e # # uptime: condensed uptime of the machine # # Copyright (C) 2009 RaphaΓ«l Pinson. # Copyright (C) 2009 Canonical Ltd. # Copyright (C) 2011-2014 Dustin Kirkland # # Authors: RaphaΓ«l Pinson <raphink@ubuntu.com> # Dustin Kirkland <kirkland@byobu.org> # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, version 3 of the License. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. __uptime_detail() { uptime } __uptime() { local u= idle= str= if [ -r /proc/uptime ]; then read u idle < /proc/uptime u=${u%.*} elif [ -x /usr/sbin/sysctl ]; then # MacOS support u=$(/usr/sbin/sysctl -n kern.boottime | cut -f4 -d' ' | cut -d',' -f1) u=$(($(date +%s) - $u)) fi if [ "$u" ]; then if [ "$u" -gt 86400 ]; then str="$(($u / 86400))d$((($u % 86400) / 3600))h" elif [ "$u" -gt 3600 ]; then str="$(($u / 3600))h$((($u % 3600) / 60))m" elif [ "$u" -gt 60 ]; then str="$(($u / 60))m" else str="${u}s" fi else # Last ditch hack str=$(uptime | sed -e "s/.* up *//" -e "s/ *days, */d/" -e "s/:/h/" -e "s/,.*/m/") fi [ -n "$str" ] || return color w b; printf "%s" "${str}"; color -- } # vi: syntax=sh ts=4 noexpandtab