q-shell is a modern shell implementation with advanced features and extensibility. This guide covers the key features and usage patterns.
- Clone the repository:
git clone https://github.com/tegaidogun/q-shell.git
cd q-shell- Create a build directory and build the project:
mkdir build
cd build
cmake ..
make- Install (optional):
sudo make installDisplay available built-in commands and their usage.
Change the current directory:
cd /path/to/directory
cd ~ # Home directory
cd - # Previous directoryManage shell profiling:
profile status # Check profiling status
profile on # Enable profiling
profile off # Disable profilingView command history with timestamps and exit codes:
historyExit the shell:
exitChain commands using operators:
command1 && command2 # Run command2 if command1 succeeds
command1 || command2 # Run command2 if command1 fails
command1 | command2 # Pipe output of command1 to command2
command1 & # Run command1 in backgroundRedirect input and output:
command > file # Redirect stdout to file
command >> file # Append stdout to file
command < file # Redirect file to stdin
command 2> file # Redirect stderr to file
command 2>> file # Append stderr to fileManage background jobs:
command & # Run command in background
jobs # List background jobs
fg %1 # Bring job 1 to foreground
bg %1 # Continue job 1 in background-
Permission denied
- Check file permissions
- Use sudo if appropriate
-
Syntax error
- Check command syntax
- Verify quotes and special characters
- Use the
helpcommand - Check the documentation
- Report issues on GitHub
This project is licensed under the MIT License. See the LICENSE file for details.
- Development Guidelines - For developers
- API Documentation - Detailed API reference