Managing Bookmarks in Linux Mint Cinnamon Desktop File Manager
Categories:
4 minute read
Bookmarks in Nemo, the default file manager for Linux Mint’s Cinnamon Desktop, provide quick access to frequently used folders and locations. This comprehensive guide will walk you through everything you need to know about managing bookmarks effectively to streamline your file navigation.
Understanding File Manager Bookmarks
What Are File Manager Bookmarks?
Bookmarks in Nemo serve several purposes:
- Quick access to frequently used directories
- Easy navigation to remote locations
- Organization of project-specific folders
- Shortcuts to network shares
- Custom grouping of related locations
Types of Bookmarks
Nemo supports various bookmark types:
- Local folder bookmarks
- Network location bookmarks
- Remote server bookmarks
- Special location bookmarks
- User-defined bookmark separators
Basic Bookmark Management
Adding Bookmarks
Several methods to add bookmarks:
Using the menu:
- Navigate to desired location
- Click Bookmarks → Add Bookmark
- Or press Ctrl + D
Drag and drop:
- Drag folder to sidebar
- Release to create bookmark
- Adjust position as needed
Command line:
# Add bookmark using GTK bookmarks
echo "file:///path/to/folder" >> ~/.config/gtk-3.0/bookmarks
Organizing Bookmarks
Manage bookmark order and structure:
Through Nemo interface:
- Open Bookmarks → Edit Bookmarks
- Drag entries to reorder
- Right-click for additional options
Manual configuration:
# Edit bookmarks file directly
nano ~/.config/gtk-3.0/bookmarks
Example bookmark file structure:
file:///home/user/Documents Documents
file:///home/user/Projects Projects
file:///home/user/Downloads Downloads
sftp://server/path Remote Server
Advanced Bookmark Features
Creating Bookmark Separators
Add visual organization:
- Edit bookmark file:
# Add separator
echo "file:///separator separator" >> ~/.config/gtk-3.0/bookmarks
- Create custom separator:
# Add themed separator
echo "file:///separator ─────────────" >> ~/.config/gtk-3.0/bookmarks
Network Location Bookmarks
Set up network bookmarks:
- Connect to network location:
# Connect to SMB share
smb://server/share
# Connect to SSH/SFTP
sftp://username@server/path
- Bookmark connected location:
- Click Bookmarks → Add Bookmark
- Edit bookmark name if desired
- Configure auto-connect settings
Special Location Bookmarks
Create bookmarks for special locations:
# Add computer root
echo "computer:/// Root" >> ~/.config/gtk-3.0/bookmarks
# Add network location
echo "network:/// Network" >> ~/.config/gtk-3.0/bookmarks
# Add trash location
echo "trash:/// Trash" >> ~/.config/gtk-3.0/bookmarks
Bookmark Synchronization
Using Symbolic Links
Create synchronized bookmarks:
# Create symbolic link
ln -s /path/to/original ~/.bookmarks/linked
# Add linked location
echo "file:///home/user/.bookmarks/linked Linked Folder" >> ~/.config/gtk-3.0/bookmarks
Cloud Synchronization
Set up cloud-synced bookmarks:
- Create cloud-based bookmark file:
# Move bookmarks to cloud folder
mv ~/.config/gtk-3.0/bookmarks ~/Dropbox/Linux/bookmarks
# Create symbolic link
ln -s ~/Dropbox/Linux/bookmarks ~/.config/gtk-3.0/bookmarks
- Sync between computers:
# Create sync script
nano ~/.local/bin/sync-bookmarks.sh
#!/bin/bash
# Sync bookmarks between computers
rsync -av ~/.config/gtk-3.0/bookmarks user@remote:~/.config/gtk-3.0/
Custom Bookmark Scripts
Automated Bookmark Management
Create bookmark management scripts:
- Backup script:
#!/bin/bash
# Backup bookmarks
backup_dir="$HOME/.backup/bookmarks"
date_stamp=$(date +%Y%m%d)
# Create backup directory
mkdir -p "$backup_dir"
# Copy bookmarks file
cp ~/.config/gtk-3.0/bookmarks "$backup_dir/bookmarks_$date_stamp"
# Remove old backups
find "$backup_dir" -type f -mtime +30 -delete
- Bookmark generator:
#!/bin/bash
# Generate project bookmarks
project_dir="$HOME/Projects"
# Clear existing project bookmarks
sed -i '/Projects\//d' ~/.config/gtk-3.0/bookmarks
# Add bookmarks for each project
for project in "$project_dir"/*/ ; do
if [ -d "$project" ]; then
echo "file://$project $(basename $project)" >> ~/.config/gtk-3.0/bookmarks
fi
done
Integration with Desktop Environment
Custom Actions
Create bookmark-related actions:
- Create action file:
nano ~/.local/share/nemo/actions/add-to-bookmarks.nemo_action
[Nemo Action]
Name=Add to Bookmarks
Comment=Add selected folder to bookmarks
Exec=echo "file://%F %f" >> ~/.config/gtk-3.0/bookmarks
Icon-Name=bookmark-new
Selection=d
Extensions=any;
Keyboard Shortcuts
Set up bookmark management shortcuts:
- Open Keyboard Settings
- Add custom shortcuts:
- Add bookmark: Ctrl + D
- Edit bookmarks: Ctrl + B
- Toggle bookmark sidebar: F9
Best Practices
Organization Strategies
Use consistent naming:
- Clear, descriptive names
- Category prefixes when useful
- Project-specific identifiers
Group related bookmarks:
- Use separators for categories
- Keep similar items together
- Maintain logical order
Maintenance Tasks
Regular bookmark maintenance:
- Clean unused bookmarks:
# Verify bookmark validity
while IFS= read -r bookmark; do
location=$(echo "$bookmark" | cut -d' ' -f1)
if [[ $location == file://* ]]; then
path=${location#file://}
[ ! -e "$path" ] && echo "Invalid: $bookmark"
fi
done < ~/.config/gtk-3.0/bookmarks
- Update network bookmarks:
- Verify connection settings
- Update changed credentials
- Remove obsolete locations
Troubleshooting
Common Issues
- Broken bookmarks:
# Remove invalid bookmarks
sed -i '/Invalid_Path/d' ~/.config/gtk-3.0/bookmarks
# Refresh Nemo
nemo -q
- Permission problems:
# Check bookmark file permissions
chmod 600 ~/.config/gtk-3.0/bookmarks
# Verify folder permissions
ls -la ~/.config/gtk-3.0/
Conclusion
Effective bookmark management in Linux Mint’s Cinnamon Desktop file manager can significantly improve your file navigation and organization efficiency. By understanding and implementing various bookmark features, maintaining organized structures, and following best practices, you can create a streamlined file management workflow.
Remember to regularly maintain your bookmarks, implement consistent organization strategies, and utilize automation where possible. With these practices in place, you’ll have a robust bookmark system that enhances your productivity and file management experience.
Feedback
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.