am trying to add entry to /etc/hosts file using ‘sudo echo '192.168.1.254 router' >> /etc/hosts
‘ but getting an error that read as, -bash: /etc/hosts: Permission denied
. How do I insert or append text to a file when running sudo command on Linux or Unix-like system?
I think Google has its own dns caching system. I am getting the same old dns entry in my Google Chrome browser on both Linux and Apple OS X. How do I flush or clear the DNS cache in Google Chrome browser without compete shutting down?
am a new Linux user. How do I run two commands from a bash shell? I need to run apt-get update and apt-get -y upgrade without typing sudo command two times from a command line on Ubuntu Linux AWS cloud server. How can I two commands in sudo ‘command1 && command2’?
s there is an easy way to audit and lock down (secure) Apple OS X 10.11 (El Capitan) unix operating system?
here are certain files in Ubuntu Linux (or Unix-like systems) that only root user access or edit. How can I edit and/or open files that requires admin (root) access on a Ubuntu Linux?
‘m setting up a new FreeBSD server. I do not want to use a default root user who has full system access. How can I setup and grant sudo privileges to users on a FreeBSD VPS or server?
am using Apple OS X Mountain Lion 10.8.4 on my Macbook pro. For my school project I need to write an app in PHP 5 and Apache. However, I am unable to find the Web Sharing option from the Sharing panel in System Preferences. How do I install Apache and PHP5 in OS X version 10.8.4? How do I enable HTTPD and test my web app?