Categories
Tags
a Accessibility Advanced Algorithms Alias Bash bash Basics Beginners Best Practices Big O bun cat cd CLI Comments Container Elements Container Queries cp css CSS Data Structures deno Doctype Download Editors Error Examples Features figure File Watching Filesystem fish Fish Shell footer frontend Guide header Hello World History Homebrew HTML HTML5 humor img javascript JavaScript Learning less Links linux Linux ls macOS Media Queries meta Mobile-First mv Netcat Networking Node.js npm Package Manager picture pm2 Productivity programming Programming pwd Responsive Design Responsive Images rmdir Scalability section Semantic HTML shell Shell Shell Script Shells srcset State Management Structure Svelte Svelte Store SvelteKit svg Tables tail Text Formatting Tools touch Troubleshooting Tutorial Unix ux Vim web development Web Development web-development webdev
102 words
1 minutes
Linux commands: less
Linux commands: less
The less
command in Linux is used to view the content of a file one screen at a time. It is useful for viewing large files.
Basic Usage
To view the content of a file, use the following command:
less filename
Navigating in less
- Press
Space
to move to the next page. - Press
b
to move to the previous page. - Press
q
to quit.
Searching in less
To search for a string within the file, press /
followed by the search term and press Enter
.
Conclusion
The less
command is a powerful tool for viewing and navigating large files in Linux. It provides a convenient way to browse through file content.
Linux commands: less
https://zxce3.net/posts/cli/linux-commands-less/