A lightweight dbxcli
clone created just for learning purposes.
make
Then, simply run the created executable:
./a.out
make clean
Use --help
to see what the available commands are:
--help
-------- COMMANDS --------
cp --> copy files
ls --> list the folders/files inside
mkdir --> create new folder
mv --> move folder1/file1 into folder2/file2(creates destination if doesn't exist)
rm --> remove folder/file
search --> search for files/folders
# The `src` file is relative to the root folder and `dest` is relative to the `dropbox` folder.
cp src dest
cp /path/to/absolute/file.txt some-file.txt
# Make sure the nested folder in `dropbox` already exists.
cp dir/ dir-renamed
# It is relative to the `dropbox` folder.
ls
ls directory
mkdir folder
mv src dest
mv /path/to/absolute/file.txt some-file.txt
mv dir/ dir-renamed
The file or directory that is to be removed is relative to the dropbox
folder.
rm file.txt
rm directory/file
rm directory
Allows searching for files or directories.
It will print all the files/directories that match the given pattern.
search pattern