≡ Menu

man page

Linux / Unix: Colored Man Pages With less Command

How do I see colored man pages with standard Unix or Linux less command without installing most paging program for Unix / Linux like oses?
[click to continue…]

rpmbuild: error: Installed (but unpackaged) file(s) found Solution

I‘m trying to build a RHEL 6 rpm of nginx server. But, I get the following error:

+ /usr/lib/rpm/brp-strip-comment-note
Checking for unpackaged file(s): /usr/lib/rpm/check-files /root/rpmbuild/BUILDROOT/nginx-1.0.5-1.el6.x86_64
error: Installed (but unpackaged) file(s) found:
/usr/local/nginx/conf/fastcgi.conf
/usr/local/nginx/conf/fastcgi.conf.default

….
.
/usr/local/nginx/html/50x.html
/usr/local/nginx/html/index.html
/usr/local/nginx/sbin/nginx

RPM build errors:
Installed (but unpackaged) file(s) found:
/usr/local/nginx/conf/fastcgi.conf
/usr/local/nginx/conf/fastcgi.conf.default

..
.
/usr/local/nginx/html/50x.html
/usr/local/nginx/html/index.html
/usr/local/nginx/sbin/nginx

How do I fix this problem and build rpm file?
[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…]

Linux / UNIX: Kill User Session

How do I kill all users session under Linux or UNIX operating system using command prompt?
[click to continue…]

Linux / UNIX: Speed up SSH X11 Forwarding

I‘ve an CentOS based server and Ubuntu based desktop pc. I’m connecting to my CentOS using ssh X11 forwarding feature. However, speed over the Internet is pretty slow for certain apps such as VMWare console. How do I speed up OpenSSH X11 forwarding using Linux / UNIX desktop system?
[click to continue…]

Truncate: UNIX Binary Log File

How do I truncate a UNIX binary log file using command line options?
[click to continue…]

Debian Linux Delete Directory Command

I am new to Debian Linux and bash shell command line. How do I delete or remove a directory using bash prompt?
[click to continue…]

OpenBSD: Setup a Serial Console

How do I enable console redirection under OpenBSD so that I can see my remote server boot information and any diagnostic information that is normally printed to the screen? I’ve already enabled serial ports in my server BIOS and wired them up. How do I configure and access OpenBSD UNIX x86/amd64 server over serial console?
[click to continue…]

HowTo: OpenBSD Mount an NTFS File System

I‘m dual booting my Windows XP system with OpenBSD. How do I mount an NTFS file system under OpenBSD operating systems?
[click to continue…]

Linux / UNIX: Convert Epoch Seconds To the Current Time

How do I convert Epoch seconds to the current time under UNIX or Linux operating systems?
[click to continue…]