Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/abdullahrfa/bongodev
https://github.com/abdullahrfa/bongodev
Last synced: 12 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/abdullahrfa/bongodev
- Owner: AbdullahRFA
- Created: 2024-10-12T01:03:54.000Z (4 months ago)
- Default Branch: main
- Last Pushed: 2024-10-27T18:19:39.000Z (3 months ago)
- Last Synced: 2024-10-27T22:22:49.688Z (3 months ago)
- Language: C++
- Size: 9.21 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Basic macOS Terminal Commands for Day-to-Day Usage
This README contains essential macOS Terminal commands that are helpful for daily tasks such as file management, navigation, network operations, and system monitoring.
1. Navigating Directories
pwd: Print the current directory path.
pwd
ls: List files and directories.
ls
Show hidden files:
ls -a
List files with detailed information (permissions, size, date):
ls -l
cd: Change directory.
cd
Move to the parent directory:
cd ..
Move to the home directory:
cd ~
2. File Management
touch: Create an empty file.
touch filename.txt
mkdir: Create a new directory.
mkdir my_directory
cp: Copy a file.
cp source_file destination_file
To copy a directory (recursively):
cp -r source_directory destination_directory
mv: Move or rename a file or directory.
Move:mv source_file destination_directory/
Rename:mv old_filename new_filename
rm: Remove a file.rm filename.txt
To remove a directory and its contents (recursively):
rm -r directory_name3. File Viewing and Editing
cat: View the contents of a file.
cat filename.txt
nano: Edit a file directly in the terminal.
nano filename.txt
open: Open a file or directory in its default application (e.g., Finder, text editor).
open filename.txt
4. File Permissions
• chmod: Change file or directory permissions.
• Make a file executable:chmod +x script.sh
5. Network Commands
ping: Check the connection to a website or IP address.
ping google.com
• Press Ctrl + C to stop.
• ifconfig: View network interface configuration.
ifconfig
curl: Make HTTP requests to a URL.curl https://example.com
6. System Information and Monitoring
top: View real-time system resource usage (like Task Manager).
top
• Press q to exit.
df: Show disk space usage.
df -h
du: Show the size of files and directories.
du -sh
whoami: Show the current logged-in user.
whoami
7. Search and Find
find: Find files and directories by name.
find . -name "filename.txt"
grep: Search for specific text within files.
grep "search_term" filename.txt
8. Miscellaneous
clear: Clear the terminal screen.
clear
history: Show a list of previously used commands.
history
exit: Close the terminal session.
exit
This format is ready to use in a README.md file for your GitHub repository! Let me know if you need anything else.