≡ Menu

Programming Tutorials and HowTos

Programming related tutorials, topics, howtos, tips, and hacks under Linux, OS X, *BSD and Unix like operating systems with special focus on sys admin/devops tasks ( rss feed ).

HowTo: Compile And Run a C/C++ Code In Linux

I am a new Linux user and student who used to write C or C++ programs on MS-Windows. Now, I am using Ubuntu Linux. How can I compile a C or C++ program on Linux operating systems using bash Terminal application?
[click to continue…]

Python: Get Today’s Current Date and Time

How do I find out the current date and time in Python? What is the module or function I need to use to get current time or date in Python programming language?
[click to continue…]

HowTo: Python Convert a String Into Integer

How do I convert a string such as x='12345' to an integer (int) under Python programming language? How can I parse python string to integer?
[click to continue…]

Linux: Set OR Change The Library Path

I've compile and installed a library at /usr/local/lib/libapp2.so -> libapp2.so.1.4.3. How do I set the Library path under Linux operating systems?
[click to continue…]

How do I find out the size of the bss, text segment and data segment for each object or binary file under Linux operating systems?
[click to continue…]

gedit: Add Python / C++ Autocomplete Support

How do I add Autocomplete support to gedit text editor under Linux Gnome desktop operating systems?
[click to continue…]

UNIX Get An Alert When Disk Is Full

I want to get an alert when my disk is full under UNIX and Mac OS X? How do I set a a specified threshold and run the script via cron?
[click to continue…]