Forrest logo
back to context overview

system

List of commands for system:

  • system:cpu:usage Displays CPU usage as a percentage in Linux
    $ top -b -n 1 | grep '%Cpu' | awk '{print $2}'
    try on your machine
    explain this command
  • system:date:set Sets the system date and time to the specified value. Format: yy-mm-dd hh:ii:ss.
    $ date -s '${year}-${month}-${day} ${hour}:${minute}:${second}'
    try on your machine
    explain this command
  • system:disk:free Displays the amount of disk space occupied and available on the file system in human-readable format.
    $ df -h
    try on your machine
    explain this command
  • system:log:follow:multiple The command 'tail -f' is used to continuously monitor logs and display any new changes.
    $ tail -f ${path_to_main_directory}/**/*.log
    try on your machine
    explain this command
  • system:memory:usage Displays the memory usage in megabytes (MB)
    $ free -m
    try on your machine
    explain this command
  • system:processes:list Lists all processes running on the system in a detailed format.
    $ ps -aux
    try on your machine
    explain this command
back to context overview