Tools.pybasher.PyBasher

Common bash commands.

Usage

Source

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

Source

cat(path)

cd()

Change current working directory.

Usage

Source

cd(path)

chmod()

Change file permissions.

Usage

Source

chmod(permissions, path)

chown()

Change file owner.

Usage

Source

chown(owner, path)

cp()

Copy file.

Usage

Source

cp(source, destination)

df()

Display free disk space.

Usage

Source

df(path)

du()

Display disk usage statistics.

Usage

Source

du(path)

find()

Search for files matching pattern in path.

Usage

Source

find(path, pattern)

grep()

Search for pattern in file.

Usage

Source

grep(pattern, path)

history()

Display command history.

Usage

Source

history(options)

info()

Display information for command.

Usage

Source

info(command)

kill()

Send signal to process.

Usage

Source

kill(signal, process_id)

ls()

List directory contents.

Usage

Source

ls(path)

man()

Display manual for command.

Usage

Source

man(command)

mkdir()

Create directory.

Usage

Source

mkdir(path)

mv()

Move file.

Usage

Source

mv(source, destination)

ps()

Display running processes.

Usage

Source

ps(options)

pwd()

Print current working directory.

Usage

Source

pwd()

rm()

Delete file.

Usage

Source

rm(path)

rmdir()

Delete empty directory.

Usage

Source

rmdir(path)

tar()

Create or extract tar archive.

Usage

Source

tar(action, options, archive, files)

top()

Display top-running processes.

Usage

Source

top(options)

touch()

Create empty file.

Usage

Source

touch(path)

unzip()

Extract zip archive.

Usage

Source

unzip(archive, destination)

zip()

Create zip archive.

Usage

Source

zip(options, archive, files)