Skip to main content

Posts

Showing posts with the label TECH

12 Different Ways To Use pwd command

NAME pwd - print name of current/working directory. It prints the path of the working directory starting from root(/).  SYNOPSIS pwd [option]... DESCRIPTION Print the full filename of the current working directory. It has 2 flags and it takes no arguments. -L, --logical use pwd from environment, even if it contains symbolic links. -P, --physical avoid all symbolic links. If both -L and -P options are used, -L is taken into priority. And if no option is specified at the command prompt, pwd will avoid all symlinks, so -P is assumed. --help  display this help and exit --version output version information and exit Returns zero unless an invalid option is given or the current directory cannot be read. Therefore, 0 = success. Non-zero(any character that is not zero) = failure. NOTE: your shell may have its own version of pwd, which usually supersedes the version described here. So we'll use /bin/pwd instead of pwd alone. Reason : pwd alone means the s

Fun Terminal Commands Every Linux User Should Try

Accessing Maps from the terminal with MapSCII Requirements Telnet installed Internet Connection Firewall is disabled You can do this on Linux, Unix, Mac OS X or Windows with an app like PuTTY or the Windows 10 Linux bash shell or any Os that supports telnet. Open terminal and write the command below. telnet mapscii.me Hit enter and you're ready to browse and enjoy MapSCII. Navigate using the keyboard or mouse. Use the following keys on your keyboard Arrow keys: up, down, right, left A to zoom in Z to zoom out C toggles ASCII mode on/off You can also click and drag and hold on the map with your cursor. If your connection dropped without a reason, reconnect with telnet -E mapscii.me and use only cursors, A and Z to navigate. The Mapscii project is open source and you can install it locally if you'd like. Check out their project here on GitHub . The Dancing ASCII Party Parrot Requirements Curl installed Internet

How To Watch Star Wars in Terminal (Windows, Linux, Mac OS)

Star Wars is one of the most popular Sci-Fi movie movie franchise in the history of cinema.  If you are one of its hard core fans, perhaps you won't mind watching it again.  But it won't be HD or BlueRay edition. In terms of graphics, it's nowhere close to what you would expect but still fun nonetheless. Instead, it will be in ASCII format. You can watch it on Windows, Mac Os and Linux or any OS that supports Telnet. I'll also show you a few tricks that will make it ore colourful. Telnet is a network protocol used to connect to another host or someone else's computer. On Windows Telnet is disable by default, so you need to enable it in the control panel. If you don't have telnet, you can install it using the following command in your command line then press enter. pkgmgr /iu:"TelnetClient" If asked for administrator permissions, enter your password and confirm access. Restart the command prompt and then type in the following

Display Linux/Mac OS Distribution Logo in ASCII Art in Terminal

There are 2 tools which are commonly used to display Linux distribution Logo in the Linux Terminal. Neofetch Screenfetch The main purpose of these tools is to be used in screenshots to show other users what OS/distribution you're running as well as the themes and icons you're using. These tools also display a lot more than just the logo. They provide the following information about your system. System Model Screen Resolution Linux Kernel Version Desktop Environment Uptime Windows Manager Packages Themes and Icons Shell Version Terminal Tool in use CPU, GPU and RAM information Most Linux distributions are covered here, in case yours is not please feel free to visit their  Wiki page NEOFETCH It is a command-line system information tool written in BASH that displays information about your system next to an image, your OS logo or any ASCII file of your choice. This tool can also be used in Linux, MacOS,iOS, Android, Haiku, GNU Hurd,

How To Uninstall or Remove Apache HTTP Web Server From Debian and Ubuntu-based distros

Uninstalling the Apache server frees valuable system resources. If you no longer need Apache you can uninstall it from your system using these simple steps These commands apply to Debian, Ubuntu and other Ubuntu-based Linux distributions such as Linux Mint, Elementary OS, Linux Lite, Zorin Os etc. Remove Apache Follow these steps to remove Apache2 service using the terminal First, stop the Apache2 service if it is running with sudo service apache2 stop Now remove and clean up all the apache2 packages with sudo apt-get purge apache2 apache2-utils apache2.2-bin apache2-common OR sudo apt-get purge apache2 apache2-utils apache2-bin apache2.2-common Use the auto remove command to get rid of other dependencies sudo apt-get autoremove Check whether there are any other configuration files that have not been removed using this command: whereis apache2 It should return apache: If you get the following output apache: /etc/apache2 Remove the dire

Setting Up Virtual Hosts In Apache HTTP Web Server On Linux-Ubuntu and Debian based distros

What is Apache Virtual Host? A virtual host allows you to run more than one website or rather multiple websites from a single machine/physical server or virtual private server. There are 2 types of virtual hosting on Apache IP-based Virtual Hosting This is where every individual website on the Apache server uses a different unique IP address. It is a method to apply different directives based on the IP address and port a request is received on. It is commonly used to serve different websites on different ports or interfaces. Using a single IP address but multiple TCP ports is also called IP-based virtual hosting. It uses the IP address of the connection to determine the correct virtual host to serve. Therefore you need to have a separate IP address for each host. Name-based Virtual Hosting Many different hosts can share the same IP address. It is simpler than IP-based hosting since you only need to configure the DNS server to map each hostname to the correct IP address a