inode?
Determine if a file is an inode in ruby.
linux manual
Basic Usage
host = Kanrisuru::Remote::Host.new(host: '127.0.1.1', username: 'ubuntu', keys: ['~/.ssh/id_rsa'])
host.inode?('/var/log/syslog')
true
host.inode?('/etc')
true
host.inode?('/dev/null')
true
host.inode?('/etc/os-release')
true
Tested On
- Ubuntu, Debian, Centos, Fedora, Redhat, OpenSuse, SLES