𝗖𝗘 - 𝗖𝘆𝗯𝗲𝗿 𝗘𝘅𝗽𝗲𝗿𝘁
前往频道在 Telegram
⚠️ This Channel Does Not Promote Any Illegal Activities, It's Just For Fun And Educational Purpose.
显示更多1 000
订阅者
无数据24 小时
无数据7 天
-1930 天
帖子存档
1 000
📚 A Quick Guide to Bash Special Variables:
• $1, $2, $3, ...
These are the positional parameters, representing arguments passed to the script or function. $1 is the first argument, $2 is the second, and so on.
• "$@"
An array-like construct containing all positional parameters. Each parameter is treated as a separate quoted string, preserving spaces.
• "$*"
Expands all positional parameters as a single string, separated by the current Internal Field Separator (IFS).
• $#
The number of positional parameters passed to the script or function.
• $-
Displays the current shell options as a string (e.g., himBH for interactive, monitor mode, etc.).
• $$
The process ID (PID) of the current shell instance, not any subshell it may invoke.
• $_
Holds the last argument of the previous command or the absolute path of the shell script executed at startup.
• $IFS
The Internal Field Separator, used to split input into fields during expansion. Defaults to spaces, tabs, and newlines.
• $?
The exit status of the last executed command. A value of 0 typically means success, while non-zero indicates an error.
• $!
The PID of the most recently executed background command.
• $0
The name of the script or shell being executed, including its path if run with one.
1 000
🐧 Quick Linux tip:
When you need to create several directories at once, you don’t have to do it one by one.The mkdir command supports brace expansion, letting you create multiple nested directories in a single go.
$ mkdir -p ~/scripts/{site-01,site-02}/{backup,monitoring,network}
This instantly creates folders for two sites, each with its own backup, monitoring, and network directories.
A neat way to save time and keep your directory structure organized.1 000
📁 This Is The Official Coding Expert Folder
❤️ It includes group and channel links related to:
• Coding & Programming Resources • AI (Artificial Intelligence) • Hacking & Cybersecurity • Chess Content & Stories • Coding News & Updates • Courses, Guides & Learning Materials🔗 Folder Link: https://t.me/addlist/zvD9wng0mJFlNTk1 If you also want to add Your own group or channel to this folder, feel free to DM: @lalitjangra142
1 000
Cyber Storm Force – Team Join
@CyberStormForce is inviting people who want to support cyber safety and online reporting work.
Your role will be limited to: • Reporting illegal Telegram channels and bots
• Assisting with Telegram and email-based reports
This is a voluntary public service role.
No salary or payment is involved.
If you wish to join, message @lalitjangra142 with: Name | Email | Mobile number | Reason for joining
Only serious and responsible people should contact.
1 000
📁Our Coding Expert Folder
🔗Link: https://t.me/addlist/zvD9wng0mJFlNTk1
Contact to add your channel or group to our folder. Entry fee: ₹99/-
🔥 Contact: @CodingExpertAdminsBot
1 000
🔥 5TB+ PREMIUM DIGITAL BUNDLE ❤️🔥
😣 Get everything you need in one powerful bundle
📹 Video Editing Course 📊 Trading & Crypto Trading Course 🗣️ English Speaking Course 📚 E-Books + Handwritten Notes 💻 Coding Big Projects + Source Codes 🤖 Telegram Bot Codes & Scripts 🎨 Icon Packs + Telegram & Blog Themes 📱 47+ Premium Apis 🧠 Skill-Based & Paid Courses 🛠️ Tools, Templates & Resources 🎁 Bonus: CET Token • Current Value: ₹27/- 💰 Price: ONLY ₹199/- 💳 Payment Methods: UPI | Google Play Redeem Code | Crypto 💌 DM to Buy: @lalitjangra142
1 000
🔰 Quick Linux Tip🐧
You can enable timestamps in your bash command history to see when you ran previous commands. This can be useful for tracing what you were working on and when.
To add timestamps to your history, just set the HISTTIMEFORMAT environment variable like so:
$ export HISTTIMEFORMAT="%F %T "
Now when you view your history or grep through it, you'll see a timestamp next to each command indicating when it was run:
$ history | tail -n 5
Or to save a couple of keystrokes:
$ history 5
The format "%F %T" shows the date and time, but you can customize it to your liking.
Note: This does not put historical timestamps on commands you executed before setting HISTTIMEFORMAT and also this only works in bash.1 000
🔰 Understanding Linux System Logs
System logs, often found in /var/log directory in Linux systems, are essential for monitoring and troubleshooting system issues. Here are short notes on some common system logs:syslog: A general-purpose system log file that contains messages from various system services and applications. It's the main log file that many other logs feed into. auth.log: Records authentication-related messages, including successful and failed login attempts, password changes, and user authentication events. kern.log: Logs kernel-related messages, such as hardware errors, kernel module loading, and other kernel activities. messages: A catch-all log file that records various system messages, including system startups, shutdowns, and general system-related events. dmesg: Displays kernel ring buffer messages, providing a real-time view of kernel-related events and hardware detection during system boot-up. cron: Logs messages related to cron jobs and scheduled tasks, including when they run, and any errors encountered during execution. secure: Records security-related messages, including authentication attempts, privilege escalation, and other security-related events. apache/access.log and apache/error.log: These logs are specific to the Apache web server. access.log records HTTP access logs, while error.log logs Apache server errors and warnings. nginx/access.log and nginx/error.log: Similar to Apache logs, these logs are specific to the Nginx web server and record access and error events. mysql/error.log: Records errors and warnings encountered by the MySQL database server, including startup errors, query failures, and database crashes.
These logs provide valuable insights into system performance, security events, and troubleshooting information. Regularly monitoring and analyzing these logs can help maintain system health and identify potential issues before they escalate
