Most voted questions in Linux Administration

0 votes
1 answer

Killing a Zombie Process

You can clean up a zombie process ...READ MORE

Jun 20, 2019 in Linux Administration by Upasana
• 8,620 points
746 views
0 votes
1 answer

pipe to clipboard using Bash

Try xclip; xclip - command line interface to ...READ MORE

Jun 17, 2019 in Linux Administration by Shubham
• 13,490 points
676 views
0 votes
1 answer

Overall CPU usage (%)

top -bn2 | grep "Cpu(s)" | \ ...READ MORE

Jun 17, 2019 in Linux Administration by Shubham
• 13,490 points
819 views
0 votes
1 answer

How can I find out which files differ in two directory trees?

Use this; diff -qr dir1/ dir2/ READ MORE

Jun 13, 2019 in Linux Administration by Upasana
• 8,620 points
575 views
0 votes
1 answer

Linux: Efficiently test if a port is Open

$ nc -z <host> <port>; echo $? Use ...READ MORE

Jun 12, 2019 in Linux Administration by Shubham
• 13,490 points
552 views
0 votes
1 answer

127.0.0.1: Could not Determine the server's fully qualified domain name

If you don't have httpd.conf in folder /etc/apache2, you should ...READ MORE

Jun 12, 2019 in Linux Administration by Shubham
• 13,490 points
1,715 views
0 votes
1 answer

How to send mail using linux shell script?

If you've already configured the server, with ...READ MORE

Jun 11, 2019 in Linux Administration by ajs3033
• 7,300 points
1,008 views
0 votes
1 answer

Replacing string characters using CLI

To replace each of xy and z ...READ MORE

Jun 11, 2019 in Linux Administration by DareDev
• 6,890 points
737 views
0 votes
1 answer

Linux: Finding all storage devices attached to a machine

Use /proc/partitions first. This will list all ...READ MORE

Jun 10, 2019 in Linux Administration by Upasana
• 8,620 points
558 views
0 votes
1 answer

Ubuntu 10.10: Connecting to a terminal to a serial-to-USB device on Maverick Meerkat

Check with dmesg | grep tty if system recognize ...READ MORE

Jun 10, 2019 in Linux Administration by Upasana
• 8,620 points
7,767 views
0 votes
1 answer

Argument receiving error for rm command

Bash actually expands the asterisk to every ...READ MORE

Jun 8, 2019 in Linux Administration by Shubham
• 13,490 points
744 views
0 votes
1 answer

Docker: Can't connect to docker daemon

Documentation Link: Post-installation steps for Linux  This documentation reveals ...READ MORE

Jun 8, 2019 in Linux Administration by Shubham
• 13,490 points
1,034 views
0 votes
1 answer

Cannot understand this "No X11 DISPLAY variable" error thrown at me

If you're on the main display, then export ...READ MORE

Jun 5, 2019 in Linux Administration by Upasana
• 8,620 points
10,350 views
0 votes
1 answer

Which is a good hex editor for Linux?

You could try Bless. It is written ...READ MORE

Jun 5, 2019 in Linux Administration by Upasana
• 8,620 points
601 views
0 votes
1 answer

Redirecting output to a file and stdout

The command you want is named tee; foo ...READ MORE

May 31, 2019 in Linux Administration by Shubham
• 13,490 points
799 views
0 votes
1 answer

How to extract file base name without path and extension in bash?

You don't actually have to call the ...READ MORE

May 31, 2019 in Linux Administration by Shubham
• 13,490 points
5,499 views
0 votes
1 answer

Linux: Recursive download of a folder via FTP

wget -r ftp://user:pass@server.com/ try this. READ MORE

May 31, 2019 in Linux Administration by Upasana
• 8,620 points
463 views
0 votes
1 answer

to pass the user's password to scp

Try using the 'expect' script on the ...READ MORE

May 29, 2019 in Linux Administration by Shubham
• 13,490 points
3,774 views
0 votes
1 answer

Linux : Undefined reference to pthread_create

Try this; gcc -pthread -o term term.c Hope this ...READ MORE

May 29, 2019 in Linux Administration by Shubham
• 13,490 points
9,725 views
0 votes
3 answers

Setting JAVA_HOME in linux

Hello fellow techies, Assuming you use bash shell ...READ MORE

Dec 10, 2020 in Linux Administration by Rajiv
• 8,910 points
76,890 views
0 votes
1 answer

Linux: Using grep to display filenames

You need t use -l flag with ...READ MORE

May 24, 2019 in Linux Administration by ajs3033
• 7,300 points
566 views
0 votes
1 answer

How to change the default shell in Linux?

1. Change the password file directly for ...READ MORE

May 24, 2019 in Linux Administration by Upasana
• 8,620 points
800 views
0 votes
1 answer

How to convert DOS line endings to Linux line endings in vim?

try this; :%s/\r/\r/g READ MORE

May 24, 2019 in Linux Administration by Upasana
• 8,620 points
755 views
0 votes
1 answer

“cd” doesn't work in my shell script

One way to get around this is ...READ MORE

May 24, 2019 in Linux Administration by Shubham
• 13,490 points
1,545 views
0 votes
1 answer

#! what is this called?

the # is called a hash, and ...READ MORE

May 24, 2019 in Linux Administration by Shubham
• 13,490 points
736 views
0 votes
1 answer

Installation fails on xenial "Repository does not have a release file"

This bug is missing log files that ...READ MORE

May 23, 2019 in Linux Administration by Ishaan
594 views
0 votes
1 answer

Linux Permissions: Sticky bits

You might have come across read, write ...READ MORE

May 21, 2019 in Linux Administration by John
502 views
0 votes
1 answer

finding the MySQL my.cnf location

You could always run find in a ...READ MORE

May 21, 2019 in Linux Administration by Upasana
• 8,620 points
419 views
0 votes
1 answer

Determining whether a given Linux is 32 bit or 64 bit

try this. getconf LONG_BIT Output: 32, if OS is 32 ...READ MORE

May 21, 2019 in Linux Administration by Upasana
• 8,620 points
421 views
0 votes
1 answer

Writing a heredoc to a file in a script

try to use tee: tee newfile <<EOF line 1 line 2 line ...READ MORE

May 20, 2019 in Linux Administration by Shubham
• 13,490 points
1,316 views
0 votes
1 answer

What is the meaning of 'errno'?

you can retrieve a complete list of ...READ MORE

May 20, 2019 in Linux Administration by Shubham
• 13,490 points
717 views
0 votes
1 answer

How to find path of software installed in Linux?

There are multiple ways to find the ...READ MORE

May 20, 2019 in Linux Administration by Rishi
7,772 views
0 votes
1 answer

Merge multiple pdf files in one using terminal

Install a utility call pdfunite which is ...READ MORE

May 17, 2019 in Linux Administration by ajs3033
• 7,300 points
641 views
0 votes
1 answer

To run a shell script on a Unix console or Mac terminal

To run a non-executable sh script, use: sh myscript To run ...READ MORE

May 16, 2019 in Linux Administration by Upasana
• 8,620 points
615 views
0 votes
1 answer

generating a list of files with their absolute path in Linux

If you find an absolute path to start with, ...READ MORE

May 16, 2019 in Linux Administration by Upasana
• 8,620 points
1,149 views
0 votes
1 answer

Removing a symlink to a directory

rm foo try this. Also, You need write ...READ MORE

May 15, 2019 in Linux Administration by Shubham
• 13,490 points
473 views
0 votes
1 answer

Comparing two string variables in an 'if' statement in Bash

1. For string comparison, use: if [ "$s1" ...READ MORE

May 15, 2019 in Linux Administration by Shubham
• 13,490 points
1,320 views
0 votes
1 answer

Error saying "Failed to start httpd.service: Unit httpd.service not found."

Execute the following steps or make sure ...READ MORE

May 14, 2019 in Linux Administration by Kiara
36,665 views
0 votes
1 answer

Error saying " Invalid operation uninstall" on sudo apt uninstall apache2

Try this: sudo apt-get cpufrequtils is missing a mandatory ...READ MORE

May 14, 2019 in Linux Administration by Yesha
13,419 views
0 votes
3 answers

How to uninstall Apache2 on Ubuntu?

Hey @Laksha, execute the following commands: $ sudo ...READ MORE

May 14, 2019 in Linux Administration by Hemant
255,443 views
0 votes
1 answer

Setting environment variables in linux

You need to add more information about ...READ MORE

May 13, 2019 in Linux Administration by ajs3033
• 7,300 points
1,094 views
0 votes
1 answer

Access Denied to user root@localhost while using mysql

For MySQL versions < 5.7: the default root ...READ MORE

May 13, 2019 in Linux Administration by DareDev
• 6,890 points
3,405 views
0 votes
1 answer

Linux: Killing a process occupying a particular port

Use the port command to find the ...READ MORE

Apr 3, 2019 in Linux Administration by DareDev
• 6,890 points
1,219 views
0 votes
1 answer

ssh :: Permission denied

Hey @Vinod,  Check if you're providing the correct ...READ MORE

Apr 2, 2019 in Linux Administration by Kalgi
• 52,360 points
2,470 views
0 votes
1 answer

How to install a deb file?

You can install a .deb file with ...READ MORE

Apr 1, 2019 in Linux Administration by Shaan
622 views
0 votes
1 answer

Getting error while installing deb file: dpkg frontend is locked by another process

You can try to remove the lock. ...READ MORE

Apr 1, 2019 in Linux Administration by Tina
2,766 views
0 votes
2 answers

Name or service not known error

use ping google.com dont add www or https READ MORE

Nov 28, 2020 in Linux Administration by CISUR101
8,998 views
0 votes
1 answer

How to perform proxy http request using curl?

One of the ways is: export http_proxy=http://your.proxy.server:port/ Then you ...READ MORE

Mar 26, 2019 in Linux Administration by DareDev
• 6,890 points
3,672 views
0 votes
1 answer

Cant find library in /usr/bin/ld

Say your library "libxyz.so" is located in: /home/user/myDir then ...READ MORE

Mar 26, 2019 in Linux Administration by ajs3033
• 7,300 points
11,996 views
0 votes
1 answer

redirecting stdout and stderr to file using bash

cmd >>file.txt 2>&1 Bash always executes and redirects ...READ MORE

Mar 19, 2019 in Linux Administration by ajs3033
• 7,300 points
20,787 views