I see many examples and man pages on how to do operations like search-and-replace using sed. But, I want to match a given string or a regular pattern expression and display on the screen. How do I print lines with matching pattern using sed command only under Unix like operating systems?Read answer to: \"Linux / Unix: sed Command (Read more [...]
How do I find out my DNS server IP address assiged my my ISP under Unix or Linux operating system using command prompt? How do I find preferred dns server under Debian / Ubuntu / Fedora Linux desktop system?Read answer to: \"Linux / Unix: Find Out DNS Server IP Address / Names\"
I often type the wrong command as follows under Linux bash shell: rsync -av dir1 firstname.lastname@example.org:/path/to/dir1 OR cp -av file1*.txt file2*.txt /path/to/dest I need to correct those command as follows: rsync -av dir5 email@example.com:/path/to/dir1 cp -av delta1*.txt delta2*.txt /path/to/dest How do I replace dir1 with dir [...]
How do I mirror files from remote ftp server using lftp command? How do put the entier directory from a local disk to a remote ftp server (reverse mirror) using lftp command under Linux and Unix like operating systems?Read answer to: \"Linux / Unix: lftp Command Mirror Files and Directories\"
I\'m running PHP version 5.3.3 on CentOS / RHEL 6.x with APC php-pecl-apc-3.1.9. However, I\'m getting the following warnings in my php server log file:[01-Jul-2012 10:50:49] PHP Warning: require_once(): Unable to allocate memory for pool. in /var/www/html/includes/admin.php on line 57 [18-Jul-2012 17:00:08] PHP Warning: include_once(): Un [...]
I know wget command can resume downloads. H>ow do I resume partially transferred files using rsync command line under Unix like operating systems?Read answer to: \"Linux / Unix: Rsync Resume Partially Downloaded Files\"
I\'m writing a bash wrapper script that will pass arguments to the command. I need to find out the last argument if I call the wrapper as follows:./wrapper -a -b --longarg=foo thisfilename.txt ./wrapper -a -b thisfilename.txt ./wrapper -a --next=true thisfilename.txt Where, => $@ is all of them. => $0 is script name. => $1 is first [...]
I\'ve upgraded to Firefox v13. However, I don\'t like the new tab page. I\'m concerned about my privacy. How do disable or hide new tab page while using Firefox browser version 13? How do you get rid of the \"new tab\" page that shows recently visited pages?Read answer to: \"Firefox Disable / Hide New Tab Page\"
How do I copy files under Unix operating system using ksh or csh or bash shell prompt?Read answer to: \"Unix Copy Command Examples [ cp command ]\"
How do I install the Z shell ( zsh ) shell under FreeBSD 9 operating systems?Read answer to: \"FreeBSD: Install zsh Shell\"
How do I see a list of all exported variables and functions under Unix bash shell?Read answer to: \"Linux / Unix: Bash Shell See All Exported Variables and Functions\"
I\'ve received a file called date.tar.gz. How do I open a tar.gz file under Linux or Unix like operating systems?Read answer to: \"HowTo: Open a Tar.gz File In Linux / Unix\"
How do I find out an inode (index-node) of a file under Unix like operating systems?Read answer to: \"Linux / Unix: Find Inode Of a File Command\"
How do I block a http user agent or a software agent using Nginx web server under Linux or Unix like operating systems?Read answer to: \"HowTo: Nginx Block User Agent\"
I\'m writing a shell script for automation purpose. The output the path of the current working directory is stored in $PWD or it can be obtained using the pwd command. How do I find out find out 3rd field separated by the forward slash (/) delimiter using $PWD under Unix like operating systems?Read answer to: \"Unix / (Read more...)
My router configured by ISP tech and it is set to get DNS server address automatically from upstream. Is there is a way to find out the IP address of the dns server used by my router which is located at 192.168.1.1? Is there Linux, Unix, Apple OS X, or MS-Windows command that I can use get the same (Read more...)
How do I assign the output of a shell command to a shell variable under Unix like operating system? For example, I want to store the date command output to a variable called $now. How do you do that?Read answer to: \"Bash: Assign Output of Shell Command To Variable\"
I want to find and edit my xorg.conf file for tweaking and configure it for new settings. The problem is that I\'m unable to find the file. According to my research, xorg.conf should in /etc/X11 or /usr/X11R6/lib/X11/ directory. I found directories but not the file in directories. How do I find the xorg.conf under Unix or Linux like operatin [...]
We have a few netapp and other Unix server running here. An NFS server is configured on both netapp and Unix. How do I see all exported file systems from netapp and unix server using Linux command line option?Read answer to: \"Linux / Unix: Show Shares on NFS Server [ Shared Directories ]\"
I\'d like to send an email with the content of a text file using mail command in Unix / Linux operating system. How do I do it?Read answer to: \"Howto: Send The Content Of a Text File Using mail Command In Unix / Linux\"