Linux Command to Rename a File or Directory

Standard Linux distributions don’t generally come with a rename command. You can install the rename package though. But the standard mv (move) command can be used to rename a file or directory very easily. The mv command will be available in almost all Linux. We generally use the mv command to move a file or … Continue reading “Linux Command to Rename a File or Directory”

Linux Commnad to Search String in Files

For developers, searching a string (text) in files is a everyday requirement. If you are using the Linux graphical user interfaces like GNOME ot KDE etc, then it is very easy and intutive. But Linux users use the commnad line interface (CLI) quite often. We’ll see how to use grep (Global Regular Expression Print) command … Continue reading “Linux Commnad to Search String in Files”

How to Implement Periodic and Single Shot Timers in Linux?

In our program, we often need to do some tasks repeatedly with some time interval. We can think of a simple solution of having a loop with the actual task and a sleep()..  The sleep() function can wait for some time and then we can call a function to do the task. Problem here is … Continue reading “How to Implement Periodic and Single Shot Timers in Linux?”

What is Secure Copy (SCP)?

Secure Copy (SCP) is a mechanism that allows us to transfer files (or folder) between a local and a remote host or between two remote hosts. It refers to two things, 1) Secure Copy Protocol, 2) Secure Copy (scp) Command. Secure Copy (SCP) is an application level networking protocol that supports file transfer in secure … Continue reading “What is Secure Copy (SCP)?”

How to Access Linux Directory or Files from Windows

Many times you want to share Linux directories and file and access them from Windows such that you can modify from Windows and that modifications should be reflected directly to the Linux. Samba is the most popular interoperability tool between Windows and Linux. This is a step by step guide to configure samba on Linux. … Continue reading “How to Access Linux Directory or Files from Windows”

0
0
0
0
0
0