File and Directory Operations Commands
File and directory operations are fundamental in working with the Linux operating system. Here are some commonly used File and Directory Operations commands:
Command |
Description |
Options |
Examples |
---|---|---|---|
ls | List files and directories. |
|
|
cd | Change directory. |
|
|
pwd | Print current working directory. |
|
|
mkdir | Create a new directory. |
|
|
rm | Remove files and directories. |
|
|
cp | Copy files and directories. |
|
|
mv | Move/rename files and directories. |
|
|
touch | Create an empty file or update file timestamps. |
|
|
cat | View the contents of a file. |
|
|
head | Display the first few lines of a file. |
|
|
tail | Display the last few lines of a file. |
|
|
ln | Create links between files. |
|
|
find | Search for files and directories. |
|
|
Linux Commands Cheat Sheet
Linux, often associated with being a complex operating system primarily used by developers, may not necessarily fit that description entirely. While it can initially appear challenging for beginners, once you immerse yourself in the Linux world, you may find it difficult to return to your previous Windows systems. The power of Linux commands in controlling your PC, coupled with their clean user interface, can make it hard to switch back to older operating systems. If you’re a developer, you can likely relate to the advantages and appeal of Linux.
To support developers and beginners alike, we have created a comprehensive Linux/Unix command line cheat sheet. This cheat sheet covers all the basic and advanced commands, including file and directory commands, file permission commands, file compression and archiving, process management, system information, networking, and more with proper examples and descriptions. In addition to that we provide all the most used Linux Shortcut which includes Bash shortcuts, Nano shortcuts, VI & Vim Shortcuts Commands. It provides a solid foundation on Linux OS commands, as well as insights into practical applications.
By the end of this cheat sheet, you will have a basic understanding of Linux/Unix Commands and how it makes development easy for developers.
What is Linux?
Linux is an open-source UNIX-like operating system (OS). An operating system is a software that directly manages a system’s hardware and resources, like CPU, memory, and storage. OS acts as a GUI through which user can communicate with the computer. The OS sits between applications and hardware and makes the connections between all of your software and the physical resources that do the work.
Linux Commands List – Table of Content
- File and Directory Operations Commands
- File Permission Commands
- File Compression and Archiving Commands
- Process Management Commands
- System Information Commands
- Networking Commands
- IO Redirection Commands
- Environment Variable Commands
- User Management Commands
- Shortcuts Commands List
- Bash Shortcuts Commands
- Nano Shortcuts Commands
- VI Shortcuts Commands
- Vim Shortcuts Commands
- FAQs on Linux Commands Cheat Sheet