Latest questions in Linux Administration

0 votes
1 answer

to pass the user's password to scp

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

May 29 in Linux Administration by Shubham
• 13,310 points
39 views
0 votes
1 answer

Linux : Undefined reference to pthread_create

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

May 29 in Linux Administration by Shubham
• 13,310 points
694 views
0 votes
1 answer

Setting JAVA_HOME in linux

find /usr/lib/jvm/java-1.x.x-openjdk vim /etc/profile Prepend sudo if logged in ...READ MORE

May 24 in Linux Administration by DareDev
• 6,810 points
716 views
0 votes
1 answer

Linux: Using grep to display filenames

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

May 24 in Linux Administration by ajs3033
• 7,280 points
34 views
0 votes
1 answer

How to change the default shell in Linux?

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

May 24 in Linux Administration by Upasana
• 8,550 points
38 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 in Linux Administration by Upasana
• 8,550 points
55 views
0 votes
1 answer

“cd” doesn't work in my shell script

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

May 23 in Linux Administration by Shubham
• 13,310 points
49 views
0 votes
1 answer

#! what is this called?

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

May 23 in Linux Administration by Shubham
• 13,310 points
39 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 22 in Linux Administration by Ishaan
46 views
0 votes
1 answer

Linux Permissions: Sticky bits

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

May 21 in Linux Administration by John
30 views
0 votes
1 answer

finding the MySQL my.cnf location

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

May 21 in Linux Administration by Upasana
• 8,550 points
34 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 in Linux Administration by Upasana
• 8,550 points
30 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 in Linux Administration by Shubham
• 13,310 points
60 views
0 votes
1 answer

What is the meaning of 'errno'?

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

May 20 in Linux Administration by Shubham
• 13,310 points
38 views
0 votes
1 answer

How to find path of software installed in Linux?

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

May 19 in Linux Administration by Rishi
128 views
0 votes
1 answer

Merge multiple pdf files in one using terminal

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

May 17 in Linux Administration by ajs3033
• 7,280 points
44 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 in Linux Administration by Upasana
• 8,550 points
58 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 in Linux Administration by Upasana
• 8,550 points
41 views
0 votes
1 answer

Removing a symlink to a directory

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

May 15 in Linux Administration by Shubham
• 13,310 points
32 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 in Linux Administration by Shubham
• 13,310 points
65 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 13 in Linux Administration by Kiara
717 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 13 in Linux Administration by Yesha
317 views
0 votes
1 answer

How to uninstall Apache2 on Ubuntu?

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

May 13 in Linux Administration by Hemant
536 views
0 votes
1 answer

Setting environment variables in linux

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

May 13 in Linux Administration by ajs3033
• 7,280 points
31 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 in Linux Administration by DareDev
• 6,810 points
328 views
0 votes
1 answer

Linux: Killing a process occupying a particular port

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

Apr 3 in Linux Administration by DareDev
• 6,810 points
48 views
0 votes
1 answer

ssh :: Permission denied

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

Apr 2 in Linux Administration by Kalgi
• 42,540 points
260 views
0 votes
1 answer

How to install a deb file?

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

Apr 1 in Linux Administration by Shaan
28 views
0 votes
1 answer
0 votes
3 answers

Error: dpkg frontend is locked by another process

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

Aug 7 in Linux Administration by Sirajul
• 39,540 points
10,206 views
0 votes
1 answer

Name or service not known error

Seems like there is no nameserver set. Run ...READ MORE

Apr 1 in Linux Administration by Rohit
87 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 in Linux Administration by DareDev
• 6,810 points
545 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 in Linux Administration by ajs3033
• 7,280 points
50 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 in Linux Administration by ajs3033
• 7,280 points
60 views
0 votes
1 answer

ld unable to find existing library

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

Mar 19 in Linux Administration by DareDev
• 6,810 points
66 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 in Linux Administration by Jobin
80 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 in Linux Administration by DareDev
• 6,810 points
32 views
0 votes
1 answer

Deleting an exported environment variable

Just use unset command: unset GNUPLOT_DRIVER_DIR READ MORE

Mar 12 in Linux Administration by DareDev
• 6,810 points
22 views
0 votes
1 answer

Adding yes/no/cancel prompts in shell script

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

Mar 12 in Linux Administration by ajs3033
• 7,280 points
44 views
0 votes
1 answer

Counting lines in a file/doc.

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

Mar 5 in Linux Administration by DareDev
• 6,810 points
31 views
0 votes
1 answer

Downloading file using SSH from a server without web access

Run this command in  your terminal: scp your_username@remotehost.edu:foobar.txt ...READ MORE

Mar 5 in Linux Administration by ajs3033
• 7,280 points
56 views
0 votes
1 answer

Making a program sleep for milliseconds?

There are no standard C API's that ...READ MORE

Mar 1 in Linux Administration by DareDev
• 6,810 points
39 views
0 votes
1 answer

How to collect all output in one file?

You can use 2> to redirect it: foo ...READ MORE

Mar 1 in Linux Administration by ajs3033
• 7,280 points
40 views
0 votes
1 answer

set permanent path to Linux

Add it to your ~/.profile or ~/.bashrc file: export PATH="$PATH:/path/to/dir" You may ...READ MORE

Feb 27 in Linux Administration by DareDev
• 6,810 points
36 views
0 votes
1 answer

How t find httpd.conf file in apache?

First f all, get apache's path: $ ps ...READ MORE

Feb 27 in Linux Administration by ajs3033
• 7,280 points
45 views
0 votes
0 answers

Error while enabling the official puppet

I'm trying to enable the official puppet lab ...READ MORE

Feb 27 in Linux Administration by mytamhuyet
• 120 points

edited Apr 10 by mytamhuyet 30 views
0 votes
1 answer

Not able to install sublime text editor

Delete the following file: /etc/apt/sources.lits.d/sublime-text.list and then try to ...READ MORE

Feb 18 in Linux Administration by Joe
121 views
0 votes
1 answer

Problem printing variable on terminal

You are basically trying to echo the ...READ MORE

Feb 18 in Linux Administration by Omkar
• 67,660 points
45 views
0 votes
1 answer

how to loop through the content of a file using bash

One of the ways to do it ...READ MORE

Feb 15 in Linux Administration by ajs3033
• 7,280 points
95 views
0 votes
1 answer

setting a variable output from a bash command

You can use $(command), which in my ...READ MORE

Feb 15 in Linux Administration by DareDev
• 6,810 points
89 views