Trending questions in Linux Administration

0 votes
1 answer

Linux: Recursive download of a folder via FTP

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

May 30 in Linux Administration by Upasana
• 8,530 points
48 views
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,300 points
30 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,530 points
45 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
31 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,530 points
26 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,300 points
38 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,300 points
34 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
37 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
424 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,530 points
27 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,530 points
26 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
22 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
89 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,300 points
50 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,300 points
35 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
202 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
37 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
198 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
176 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,530 points
49 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,530 points
31 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,300 points
59 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,300 points
27 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
25 views
0 votes
2 answers

How do I find all files containing specific text on Linux?

grep -rnw 'text to find recursively inside ...READ MORE

May 20 in Linux Administration by Ritesh Singh
5,351 views
0 votes
1 answer
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
• 41,460 points
174 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
40 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
306 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
47 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
23 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
44 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
59 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
48 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
70 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
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
35 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
17 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
50 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
28 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
35 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
31 views
0 votes
1 answer

Error :Ethernet Cable unplugged in Ubuntu

Try this: $ sudo ifconfig eth0 down $ sudo ...READ MORE

Feb 9 in Linux Administration by Omkar
• 67,620 points
870 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
33 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
28 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 27 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
104 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,620 points
41 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
83 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
80 views