Latest questions in Linux Administration

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
709 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
547 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,718 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
712 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,011 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,301 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
588 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
785 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,461 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
450 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,740 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,681 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,500 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
543 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
782 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
734 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,519 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
698 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
584 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
488 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
413 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
399 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,288 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
695 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,702 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
609 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
596 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,118 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
457 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,260 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,428 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,249 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
252,899 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,051 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,376 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,200 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,426 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
587 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,725 views
+3 votes
7 answers

Error: dpkg frontend is locked by another process

First, find out the id of the process that ...READ MORE

Aug 7, 2019 in Linux Administration by Sirajul
• 59,230 points
253,245 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,966 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,620 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,961 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,584 views
0 votes
1 answer

ld unable to find existing library

your problem here is that your linker ...READ MORE

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

Error when trying to install a few packages on ubuntu

Try executing the following commands and try ...READ MORE

Mar 15, 2019 in Linux Administration by Jobin
1,353 views
0 votes
1 answer

Finding pat of afile in linux

You can use readlink command: readlink -f filename.txt for ...READ MORE

Mar 15, 2019 in Linux Administration by DareDev
• 6,890 points
711 views
0 votes
1 answer

Deleting an exported environment variable

Just use unset command: unset GNUPLOT_DRIVER_DIR READ MORE

Mar 13, 2019 in Linux Administration by DareDev
• 6,890 points
2,073 views
0 votes
1 answer

Adding yes/no/cancel prompts in shell script

You can use the read command. Here's ...READ MORE

Mar 13, 2019 in Linux Administration by ajs3033
• 7,300 points
3,959 views
0 votes
1 answer

Counting lines in a file/doc.

you can do this by using word ...READ MORE

Mar 5, 2019 in Linux Administration by DareDev
• 6,890 points
398 views