Using the Terminal
The terminal provides full command-line access to your spaces. Execute commands, manage files, and run development tools with a touch-optimized interface designed for mobile productivity.
Getting started
Section titled “Getting started”Understanding the prompt
Section titled “Understanding the prompt”When connected to a space, you’ll see:
user@hostname:~$This prompt shows:
user- Your usernamehostname- Space name~- Current directory (~ means home)$- Ready for commands (# for root)
Basic navigation
Section titled “Basic navigation”Essential commands for moving around:
| Command | Function | Example |
|---|---|---|
pwd | Print working directory | pwd |
ls | List directory contents | ls -la |
cd | Change directory | cd /var/log |
cd .. | Go up one level | cd .. |
cd ~ | Go to home directory | cd ~ |
Terminal interface
Section titled “Terminal interface”Touch toolbar
Section titled “Touch toolbar”Quick access buttons above the keyboard:
- Tab - Command completion
- Ctrl - Control key combinations
- Esc - Cancel operations
- Arrows - Command history navigation
Gesture controls
Section titled “Gesture controls”Navigate efficiently with touch:
- Pinch - Zoom text size
- Two-finger tap - Paste clipboard
- Swipe from left - Toggle keyboard
- Long press - Select text
Session management
Section titled “Session management”Work with multiple terminal sessions:
- Tap + to create new session
- Swipe between active sessions
- Long-press tab to close
- Sessions persist during app switches
Essential commands
Section titled “Essential commands”File operations
Section titled “File operations”Common file management tasks:
# View file contentscat filename.txtless large_file.log
# Edit filesnano simple.txtvi advanced.cfg
# Copy and movecp source.txt destination.txtmv oldname.txt newname.txt
# Create and removetouch newfile.txtmkdir newfolderrm unwanted.txtrmdir emptyfolderSystem information
Section titled “System information”Monitor system status:
# Process managementps aux # List all processestop # Real-time process viewhtop # Enhanced process viewerkill PID # Terminate process
# System resourcesdf -h # Disk usagefree -m # Memory usageuptime # System uptimeuname -a # System informationNetwork tools
Section titled “Network tools”Debug connectivity:
# Network statusifconfig # Network interfacesping google.com # Test connectivitynetstat -an # Network connectionscurl httpbin.org/ip # Check external IPProductivity features
Section titled “Productivity features”Command completion
Section titled “Command completion”Use Tab for intelligent completion:
cd Doc[TAB] # Completes to: cd Documents/git sta[TAB] # Completes to: git statusssh us[TAB] # Shows matching hostsHistory navigation
Section titled “History navigation”Access previous commands efficiently:
- Up/Down arrows - Browse history
- Ctrl+R - Search history
!!- Repeat last command!$- Use last argumenthistory- View command history
Aliases
Section titled “Aliases”Create shortcuts for common tasks:
# Add to ~/.bashrc or ~/.zshrcalias ll='ls -lah'alias ..='cd ..'alias ...='cd ../..'alias gs='git status'alias gp='git pull'alias dc='docker-compose'Advanced usage
Section titled “Advanced usage”Input/Output redirection
Section titled “Input/Output redirection”Control command data flow:
# Output redirectionls > files.txt # Write to filels >> files.txt # Append to filecommand 2> errors.txt # Redirect errors
# Input redirectionsort < unsorted.txt # Read from filewc -l < document.txt # Count lines
# Pipesls | grep ".txt" # Filter outputps aux | grep node # Find processescat log | tail -n 50 # Last 50 linesBackground processes
Section titled “Background processes”Run long tasks without blocking:
# Run in backgroundnpm run build &
# List background jobsjobs
# Bring to foregroundfg %1
# Send to backgroundCtrl+Z (suspend)bgTerminal multiplexing
Section titled “Terminal multiplexing”Use tmux for persistent sessions:
# Session managementtmux new -s dev # New named sessiontmux ls # List sessionstmux attach -t dev # Reattach sessiontmux detach # Detach (Ctrl+B, D)
# Window managementCtrl+B, C # New windowCtrl+B, N # Next windowCtrl+B, P # Previous windowCtrl+B, [0-9] # Switch to windowCustomization
Section titled “Customization”Shell configuration
Section titled “Shell configuration”Personalize your environment:
# ~/.bashrc or ~/.zshrc# Custom promptexport PS1='\[\e[32m\]\u\[\e[0m\]@\[\e[34m\]\h\[\e[0m\]:\w$ '
# Environment variablesexport EDITOR=nanoexport PATH=$PATH:~/bin
# Functionsmkcd() { mkdir -p "$1" && cd "$1"; }Color schemes
Section titled “Color schemes”Kisuke offers multiple terminal themes:
- Open Settings
- Select Terminal
- Choose theme
- Adjust font size
Troubleshooting
Section titled “Troubleshooting”Common issues
Section titled “Common issues”Characters display incorrectly
- Check locale settings:
locale - Set UTF-8:
export LANG=en_US.UTF-8 - Verify terminal encoding in Settings
Commands not found
- Check PATH:
echo $PATH - Verify installation:
which command - Update package manager:
apt updateorbrew update
Session disconnects
- Check network stability
- Increase SSH timeout in space settings
- Use tmux for persistence
Keyboard issues
- Toggle keyboard with swipe gesture
- Check external keyboard settings
- Reset keyboard toolbar in Settings
Performance tips
Section titled “Performance tips”Optimize for mobile
Section titled “Optimize for mobile”- Use aliases for long commands
- Enable command history search
- Configure minimal prompts
- Limit terminal scrollback
Network efficiency
Section titled “Network efficiency”- Use tmux to survive disconnects
- Enable SSH compression
- Reduce keepalive intervals
- Cache frequently used data