Category: File & Directory

mkdir if not exists in linux/unix

mkdir creates a directory if it does not exist, we can use the mkdir -p option. syntax: mkdir -p foo/bar/baz, will create directories foo, foo/bar,...

How to grep ignore case in linux/unix

In linux/unix, we can use the grep -i option to ignore case matching search keywords. grep ignore case syntax: grep -i "keyword" file...

linux view apache logs

In Linux, apache logs (error logs and access logs) provide useful information for system administrators to solve and locate problems....

Linux log view using linux command line

Linux log view using linux command line, tail -f: added log content for real-time monitoring, cat: view all log content, more: view log content by...