get dir name
get server architecture string
get base name
get base name
Become someoneelse on the current shell session, first the command will try (if new user password is given) su - newuser then if unsuccessful it will try the sudo su - approach, in that case it is the current user pass that will be used, new user password will be ignored.
Become someoneelse on the current shell session, first the command will try (if new user password is given) su - newuser then if unsuccessful it will try the sudo su - approach, in that case it is the current user pass that will be used, new user password will be ignored.
become this new user
new user password
true if operation is successfull, the current user is the new one
Get contents of a list of files
Get contents of a list of files
get the content of this list of filenames
files contents concatenation
Get the content of a file
Get the content of a file
get the content of this filename
file content
write some data to the specified filespec
write some data to the specified filespec
the file to write to
true if data was written to the given file destination
Change current working directory to the specified directory Of course this requires a persistent shell session to be really useful...
Change current working directory to the specified directory Of course this requires a persistent shell session to be really useful...
directory name
Change current working directory to home directory Of course this requires a persistent shell session to be really useful...
Change current working directory to home directory Of course this requires a persistent shell session to be really useful...
Get remote date, as a java class Date instance (minimal resolution = 1 second)
Get remote date, as a java class Date instance (minimal resolution = 1 second)
The remote system current date as a java Date class instance
get dir name
Disable shell history, the goal is to not add noises to your shell history, to keep your shell commands history clean.
Disable shell history, the goal is to not add noises to your shell history, to keep your shell commands history clean.
Remote tree file size in kilobytes
Remote tree file size in kilobytes
file name
optional file tree size in kilobytes, or None if filename was not found
echo something and return back what has been printed
echo something and return back what has been printed
to print
printed message
remote environment variables
Execute the current command and return the result as a string
Execute the current command and return the result as a string
command to be executed
result string
Execute the current command and return the result as a trimmed string
Execute the current command and return the result as a trimmed string
command to be executed
result string
Execute the current command and return the result as a trimmed splitted string
Execute the current command and return the result as a trimmed splitted string
command to be executed
result string
the command result and the number of consumed expects
Execute the current command and return the result as a string and exit code tuple
Execute the current command and return the result as a string and exit code tuple
command to be executed
A tuple made of the result string and the exit code
Does specified filename exist ?
Does specified filename exist ?
file name
True if file exists
get file rights string (such as 'drwxr-xr-x')
Remote file size in bytes
Remote file size in bytes
file name
optional file size, or None if filename was not found
Find file modified after the given date (Warning, minimal resolution = 1 minute)
Find file modified after the given date (Warning, minimal resolution = 1 minute)
Search for file from this root directory
Date parameter
list of paths (relative to root) modified after the specified date
File system remaining space in MB
File system remaining space in MB
fs freespace in Mb if the path is valid
get remote file content as an optional String
get remote file content as an optional String
file content to get
Some content or None if file was not found
get remote file content as an optional bytes array
get remote file content as an optional bytes array
file content to get
Some content or None if file was not found
Get remote host name
Get used id information
upload a local input stream to a remote destination
upload a local input stream to a remote destination
the input stream from which we read data
amount of data to send (in bytes)
remote file name to use (just a filename, not a path, shouln't contain any path separator)
remote destination directory for our file
Is file name a directory
Is file name a directory
file name
True if file is a directory
Is filename executable ?
Is filename executable ?
file name
True if file is executable
Is file name a regular file
Is file name a regular file
file name
True if file is a regular file
kill specified processes
kill specified processes
Remote file last modified date (TZ is taken into account)
Remote file last modified date (TZ is taken into account)
file name
optional date, or None if filename was not found
locale file md5sum
locale file md5sum
file name
md5sum as an optional String, or None if filename was not found
List files in specified directory
List files in specified directory
directory to look into
current directory files as an Iterable
List files in specified directory
List files in specified directory
current directory files as an Iterable
Remote file md5sum
Remote file md5sum
file name
md5sum as an optional String, or None if filename was not found
Create a new directory and enter it
Create a new directory and enter it
true if the directory was successfully created and we were able to enter it
Create a new directory
Create a new directory
true if the directory was successfully created
Does specified filename not exist ?
Does specified filename not exist ?
file name
True if file does'nt exist
get current SSH options
*nix os name (linux, aix, sunos, darwin, ...)
*nix os name (linux, aix, sunos, darwin, ...)
remote *nix system name
*nix os name (linux, aix, sunos, darwin, ...)
*nix os name (linux, aix, sunos, darwin, ...)
remote *nix system name
Returns the current shell process identifier
Returns the current shell process identifier
current shell PID
get pid of all processes matching the given command line regular expression
get pid of all processes matching the given command line regular expression
list active processes of unix like systems
list active processes of unix like systems
system processes list
upload string content to a remote file, if file already exists, it is overwritten
upload string content to a remote file, if file already exists, it is overwritten
content to upload in the remote file
remote destination
upload bytes array content to a remote file, if file already exists, it is overwritten
upload bytes array content to a remote file, if file already exists, it is overwritten
content to upload in the remote file
remote destination
upload bytes coming from the input stream to a remote file, if file already exists, it is overwritten
upload bytes coming from the input stream to a remote file, if file already exists, it is overwritten
input stream
how much data to write to remote destination
remote destination
Get current working directory
Copy a remote file to a local one
Copy a remote file to a local one
Source file name (on remote system)
Destination stream (local system)
Copy a remote file to a local one using the same filename
Copy a remote file to a local one using the same filename
file name
Copy a remote file to a local one
Copy a remote file to a local one
Source file name (on remote system)
Destination file name (local system)
Copy a remote file to a local one
Copy a remote file to a local one
Source file name (on remote system)
Copy and compress (if required) a remote file to a local one
Copy and compress (if required) a remote file to a local one
Source file name (on remote system)
Destination directory
local file used
Copy and compress (if required) a remote file to a local one
Copy and compress (if required) a remote file to a local one
Source file name (on remote system)
local file used
lookup for remote files, for each found file send the content to an OutputStream created using the specified builder
lookup for remote files, for each found file send the content to an OutputStream created using the specified builder
file name or file mask
number of found files
delete files
delete files
delete a file
delete a file
delete directories (directories must be empty)
delete directories (directories must be empty)
delete directory (directory must be empty)
delete directory (directory must be empty)
Recursively get a remote directory to a local destination
Recursively get a remote directory to a local destination
remote path, file or directory.
local destination directory, it it doesn't exist then it is created
Recursively send a local directory to a remote destination
Recursively send a local directory to a remote destination
local path, file or directory
remote destination directory, if it doesn't exist then it is created
Copy a local file to a remote one
Copy a local file to a remote one
Source file (local system)
Destination file name (on remote system)
Copy a local file to a remote one using the same name
Copy a local file to a remote one using the same name
file name
Copy a local file to a remote one
Copy a local file to a remote one
Source file name (local system)
Destination file name (on remote system)
Remote file sha1sum
Remote file sha1sum
file name
sha1sum as an optional String, or None if filename was not found
Does the command sudo su - works with the current user password ? while preserving the TTY stdin !
Does the command sudo su - works with the current user password ? while preserving the TTY stdin !
true if OK
Does the command "sudo su -" without password works ?
Does the command "sudo su -" without password works ?
This typical usage that maximizes compatibilities across various linux is to pipe the command to the sudo -S su -
BUT with this usage you loose the TTY, so interactive commands such as the shell are no more possible and you directly get back to previous sh.
Options such as -k, -A, -p ... may not be supported everywhere.
Some notes : BAD because we want to test the su sudo -n echo OK 2>/dev/null
BAD because with older linux, -n option was not available sudo -n su - -c "echo OK" 2>/dev/null
~GOOD but NOK if only su - is allowed echo | sudo -S su - -c echo "OK" 2>/dev/null
GOOD echo "echo OK" | sudo -S su - 2>/dev/null
true if just "sudo su -" is possible without password for current user
Does the command sudo "su - -c theGivenCommand" works ? Transparently with or without password
Does the command sudo "su - -c theGivenCommand" works ? Transparently with or without password
true if it works
Generic test (man test, for arguments)
Generic test (man test, for arguments)
condition
True if condition is met
touch
*nix system name (Linux, AIX, SunOS, ...)
*nix system name (Linux, AIX, SunOS, ...)
remote *nix system name
get host up time, example formats : Linux : 21:34:17 up 33 min, 5 users, load average: 0.18, 0.27, 0.30 21:29:38 up 473 days, 22:21, 1 user, load average: 0.09, 0.04, 0.00 Darwin : 21:28 up 53 mins, 3 users, load averages: 1.40 1.49 1.52
get host up time, example formats : Linux : 21:34:17 up 33 min, 5 users, load average: 0.18, 0.27, 0.30 21:29:38 up 473 days, 22:21, 1 user, load average: 0.09, 0.04, 0.00 Darwin : 21:28 up 53 mins, 3 users, load averages: 1.40 1.49 1.52
get command location on filesystem, based on current PATH
get command location on filesystem, based on current PATH
the name of the command
full command path option or None if the command is not in the current PATH
who am I ?
Execute a collection of commands and returns the associated result collections
Execute a collection of commands and returns the associated result collections
commands collection
commands executions results collection
(Since version 0.9.14)
Execute the current batch (list of commands) and return the result as a string collection
Execute the current batch (list of commands) and return the result as a string collection
batch to be executed
result string collection
(Since version 0.9.14)
Execute the current batch (list of commands) and return the result as a string collection
Execute the current batch (list of commands) and return the result as a string collection
batch to be executed
result trimmed string collection
(Since version 0.9.14)
Execute the current batch (list of commands) and return the result as a string collection
Execute the current batch (list of commands) and return the result as a string collection
batch to be executed
result trimmed splitted string collection
(Since version 0.9.14)
Execute the current command and pass the result to the given code
Execute the current command and pass the result to the given code
command to be executed
continuation code
(Since version 0.9.14)