Tools.pybasher.PyBasher
Common bash commands.
Usage
Tools.pybasher.PyBasher()Methods
| Name | Description |
|---|---|
| cat() | Display contents of file. |
| cd() | Change current working directory. |
| chmod() | Change file permissions. |
| chown() | Change file owner. |
| cp() | Copy file. |
| df() | Display free disk space. |
| du() | Display disk usage statistics. |
| find() | Search for files matching pattern in path. |
| grep() | Search for pattern in file. |
| history() | Display command history. |
| info() | Display information for command. |
| kill() | Send signal to process. |
| ls() | List directory contents. |
| man() | Display manual for command. |
| mkdir() | Create directory. |
| mv() | Move file. |
| ps() | Display running processes. |
| pwd() | Print current working directory. |
| rm() | Delete file. |
| rmdir() | Delete empty directory. |
| tar() | Create or extract tar archive. |
| top() | Display top-running processes. |
| touch() | Create empty file. |
| unzip() | Extract zip archive. |
| zip() | Create zip archive. |
cat()
Display contents of file.
Usage
cat(path)cd()
Change current working directory.
Usage
cd(path)chmod()
Change file permissions.
Usage
chmod(permissions, path)chown()
Change file owner.
Usage
chown(owner, path)cp()
Copy file.
Usage
cp(source, destination)df()
Display free disk space.
Usage
df(path)du()
Display disk usage statistics.
Usage
du(path)find()
Search for files matching pattern in path.
Usage
find(path, pattern)grep()
Search for pattern in file.
Usage
grep(pattern, path)history()
Display command history.
Usage
history(options)info()
Display information for command.
Usage
info(command)kill()
Send signal to process.
Usage
kill(signal, process_id)ls()
List directory contents.
Usage
ls(path)man()
Display manual for command.
Usage
man(command)mkdir()
Create directory.
Usage
mkdir(path)mv()
Move file.
Usage
mv(source, destination)ps()
Display running processes.
Usage
ps(options)pwd()
Print current working directory.
Usage
pwd()rm()
Delete file.
Usage
rm(path)rmdir()
Delete empty directory.
Usage
rmdir(path)tar()
Create or extract tar archive.
Usage
tar(action, options, archive, files)top()
Display top-running processes.
Usage
top(options)touch()
Create empty file.
Usage
touch(path)unzip()
Extract zip archive.
Usage
unzip(archive, destination)zip()
Create zip archive.
Usage
zip(options, archive, files)