Can’t run C program: “a.out: command not found”

When you type a command name (a.out is no different from any other command name in this respect), the shell searches for an executable file with that name. It performs this search using a list of directory names stored in your $PATH environment variable. You can see your current $PATH by typing at your shell prompt. A typical value might … Read more

curl: (6) Could not resolve host: google.com; Name or service not known

Issues were: IPV6 enabled Wrong DNS server Here is how I fixed it: IPV6 Disabling Open Terminal Type su and enter to log in as the super user Enter the root password Type cd /etc/modprobe.d/ to change directory to /etc/modprobe.d/ Type vi disableipv6.conf to create a new file there Press Esc + i to insert data to file Type install ipv6 /bin/true on the file to … Read more

List of ANSI color escape sequences

The ANSI escape sequences you’re looking for are the Select Graphic Rendition subset. All of these have the form where XXX is a series of semicolon-separated parameters. To say, make text red, bold, and underlined (we’ll discuss many other options below) in C you might write: In C++ you’d use In Python3 you’d use and in Bash … Read more

mvn command not found in OSX Mavrerick

Try following these if these might help: Since your installation works on the terminal you installed, all the exports you did, work on the current bash and its child process. but is not spawned to new terminals. env variables are lost if the session is closed; using .bash_profile, you can make it available in all sessions, since when a bash session starts, it … Read more

cp: missing destination file operand after

Variable assignments in bash scripts require no space between the variable name and value or (unless quoted) within the value. Since a space was present in the line FILEBACKUPLOCATION= /../…/FMonday, it attempted to execute /../…/FMonday as a command (which caused the first error) with FILEBACKUPLOCATION assigned to an empty string. The variable was then not assigned when the other command … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)