How to remove CONTROL-M characters from a file : Linux / Unix

How to remove CONTROL-M characters from a file : Linux / Unix

Whenever we transfer the files from Windows to Linux / Unix system generally it has CONTROL-M character inside. Which appears as ^M inside the files . To prevent this you can first copy paste the content in notepad then again copy to file in linux system. Here, notepad will help you to transfer the ASCII…

shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
|

shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory

shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory While working on setting new squid transparent proxy in network.I faced an unusual error while restarting the Squid service. The getcwd() function copies an absolute pathname of the current working directory to the array pointed to by buf, which is…

How to find when Operating system was installed in linux CentOS and Red Hat
|

How to find when Operating system was installed in linux CentOS and Red Hat

How to find when Operating system was installed in linux CentOS and Red Hat This is a short video to know how you can find out on which date the linux was installed. It is applicable to Red Hat based linux distro. Step 1 : First find out the basesystem rpm. rpm -qa|grep basesystem Step…