shaker ~#

shaker ~#

[whats going on in my mind ?]

shaker ~# RSS Feed
 
 
 
 

Archive for Scripting & CLI

البحث عن أكبر ملف/مجلد

خلال اليومين الماضيين إحتجت على أحد الخوادم أن أبحث عن أكبر الملفات أو أكبر المجلدات لمعرفة أين تضيع مساحة ما يقارب 60 جيجا
اﻷمر بسيط عن طريق find وإستخدام المدخل -size
مثلا للبحث عن الملفات التي حجمها على الأقل 100M أو أكثر
find / -type f -size +100M
أيضا يمكن إستبدال + ب - ليتم البحث عن الملفات التي [...]

CLI shortcut keys

بعض الإختصارات السريع للوحة المفاتيح في سطر الأوامر..Ctrl + a تذهب الى اول السطر الذي تكتب فيهCtrl + e تذهب الى اخر السطر الذي تكتب فيهCtrl + l تعمل تنظيف للشاشه وهي نفس الامر clearCtrl + h تقوم بنفس عمل backspaceCtrl + f [...]

سكربت لتحميل القرآن من الأنترنت

مزود الانترنت هذه الأيام يحبني من فتره إلى أخرى ترتفع السرعه لدي من 128 إلى 512 إستيقضت اليوم ووجدتها 512 فجلست أفكر كيف سأستفيد من هذه السرعه بشكل سريع قبل أن ترجع إلى 128بعد تفكير، قررت تنزيل القرآن من موقع islamway.com حيث كنت أجد بعض من الصعوبه في سماع السوره وذلك يعود [...]

Enhance Bash Completion feature

as known pressing tabs in the Command Line Interface will complete commands or filenames for you, it’s a very nice feature in bash, i don’t remember most of the commands without this feature, but does this feature need to enhance? when you write cd [tab] then bash will list all files and directories in the [...]

WaWwwww Finaly

YES, i did it, waw what a nice feeling… i finished the damn Univ. OOOOOOOOOhhhhh yes iam so happy, but the counter is just started… any way its a nice feeling to reach the end of this mession… Tick Tock

bash loging, startup scripts and shell initialization files

bash loging, startup scripts and shell initialization files..
ok, i will talk about bash,
When a user logs in, environment variables are set from various places.
startup scripts in order is like this:

/etc/passwd
/etc/shadow
/etc/group
/etc/profile will run.
then all the files (that end with sh) in the /etc/profile.d directory
then bash will look for ~/.bash_profile, ~/.bash_login, and ~/.profile, in that order, and [...]

Basic tips for Linux programming

If you’re new to Linux programming, then you might be interested in considering these aspects before you start your wonderful journey. Especially if you’ve programmed in Windows, you might want to change some of your ideas, so that you minimize the “culture” shock you experience when you encounter completely different ideas and ways of thinking.
Continue [...]