≡ Menu

syntax

Bash Shell Script To Test For Empty Folder

How do I check if a directory contains files? How do I find out if a directory contains files using bash shell under Linux or Unix like operating systems?
[click to continue…]

Sysadmin because even developers need heroes!!!

PHP: GeSHi Syntax Highlighter Enable / Disable Line Numbers

I‘m using GeSHi under php to highlight a source code. How do I turn on or off line numbers using GeSHi?
[click to continue…]

Linux/Unix: Bash Set Shell Variable Command

How do I set or create variables within my shell script or at command line under Linux and Unix like operating systems?
[click to continue…]

Linux / Unix AWK: Read a Text File

How do I read a text file using awk pattern scanning and text processing language under Linux / Unix like operating systems?
[click to continue…]

Linux Move Directory Command

I am new to Linux and command line. How do I move a directory under Linux operating systems?
[click to continue…]

Linux / Unix Shell Scripting: Create Filename By Day Of The Week

I need to create a log file using the following format:

myapp_monday.log
myapp_tuesday.log
….

myapp_sunday.log

How do I create log filename with day of the week in it under Linux or Unix operating systems?
[click to continue…]

Linux Unlock An Account

How do I unlock an user account (user login id) under Linux operating systems?
[click to continue…]

TCSH / CSH / C Shell Check Whether a Directory is Empty or Not

How do I check whether a directory is empty or not under Linux / UNIX using a TCSH / C shell script?
[click to continue…]

Bash Shell Count Number of Characters In a String or Word

How do I count and print particular character (say D or digit 7) in a string or variable under Bash UNIX / Linux shell?
[click to continue…]

VI / VIM: Open File And Go To Specific Function or Line Number

How do I open a text file using VIM or VI and go to specific line? How do I open a file using vim and go to specific function() in my source code?
[click to continue…]