Skip to content
This repository has been archived by the owner on Apr 3, 2020. It is now read-only.

Commit

Permalink
Merge pull request #11 from brianredbeard/os-wide-additions
Browse files Browse the repository at this point in the history
mayday:  adding general OS commands
  • Loading branch information
brianredbeard committed Oct 17, 2014
2 parents c0dde5b + 2fb515c commit eaff091
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions cmd/mayday.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,46 @@ var (
Path: "/proc/meminfo",
Link: "meminfo",
},
{
Path: "/etc/os-release",
Link: "os-release",
},
{
Path: "/proc/mounts",
Link: "mounts",
},
}
commands = []mayday.Command{
{
Args: []string{"hostname"},
Link: "hostname",
},
{
Args: []string{"date"},
Link: "date",
},
{
Args: []string{"systemd-cgls"},
},
{
Args: []string{"systemd-cgtop", "-n1"},
},
{
Args: []string{"ps", "fauxwww"},
Link: "ps",
},
{
Args: []string{"lsmod"},
Link: "lsmod",
},
{
Args: []string{"lspci"},
Link: "lspci",
},
{
Args: []string{"lsof", "-b", "-M", "-n", "-l"},
Link: "lsof",
},
{
Args: []string{"blkid"},
},
Expand Down

0 comments on commit eaff091

Please sign in to comment.