Most answered questions in Linux Administration

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
612 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,143 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
470 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,314 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,630 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,388 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,087 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,400 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,215 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,464 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
617 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,764 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,663 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,995 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,753 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,421 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,378 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
725 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,087 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,983 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
407 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, 2019 in Linux Administration by ajs3033
• 7,300 points
699 views
0 votes
1 answer

Making a program sleep for milliseconds?

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

Mar 1, 2019 in Linux Administration by DareDev
• 6,890 points
1,031 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, 2019 in Linux Administration by ajs3033
• 7,300 points
782 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, 2019 in Linux Administration by DareDev
• 6,890 points
588 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, 2019 in Linux Administration by ajs3033
• 7,300 points
2,355 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 19, 2019 in Linux Administration by Joe
794 views
0 votes
1 answer

Problem printing variable on terminal

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

Feb 18, 2019 in Linux Administration by Omkar
• 69,210 points
397 views
0 votes
1 answer

setting a variable output from a bash command

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

Feb 15, 2019 in Linux Administration by DareDev
• 6,890 points
2,190 views
0 votes
1 answer

How to remove brackets using sed?

Try this: sed 's/[()]//g' <<< Hi(hello).How are you? READ MORE

Feb 13, 2019 in Linux Administration by Omkar
• 69,210 points
3,866 views
0 votes
1 answer

Wired connection keep disconnecting

The driver r8168 is not stable. Try ...READ MORE

Feb 9, 2019 in Linux Administration by Omkar
• 69,210 points
359 views
+1 vote
1 answer

Error :Ethernet Cable unplugged in Ubuntu

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

Feb 9, 2019 in Linux Administration by Omkar
• 69,210 points
13,132 views
0 votes
1 answer

What is absolute path in Ubuntu?

An absolute path is a path to ...READ MORE

Feb 9, 2019 in Linux Administration by Omkar
• 69,210 points
1,194 views
0 votes
1 answer

Error installing npm

Npm depends on NodeJS to run/get installed. ...READ MORE

Feb 9, 2019 in Linux Administration by Omkar
• 69,210 points
761 views
0 votes
1 answer

Not able to access /etc/sudoers.d/python file

I think your system is not allowing ...READ MORE

Feb 6, 2019 in Linux Administration by Lohit
1,867 views
0 votes
1 answer

How to check version of package installed by npm?

These commands are used to check the ...READ MORE

Feb 5, 2019 in Linux Administration by Omkar
• 69,210 points
2,572 views
0 votes
1 answer

How to change permissions of folder and files in folder?

The chmod command is used to set/change the permissions ...READ MORE

Feb 1, 2019 in Linux Administration by Omkar
• 69,210 points
1,722 views
0 votes
1 answer

How to create a symlink in Linux?

To create a symbolic link, you can ...READ MORE

Feb 1, 2019 in Linux Administration by Omkar
• 69,210 points
836 views
0 votes
1 answer

How to take input from user in bash script?

You can use if-else branch to check ...READ MORE

Jan 31, 2019 in Linux Administration by Omkar
• 69,210 points
857 views
0 votes
1 answer

"connect: Network is unreachable?" error on ping

You need to set your default gateway. ...READ MORE

Jan 23, 2019 in Linux Administration by Tina
28,071 views
0 votes
1 answer

What does “sudo echo nameserver 8.8.8.8 > /etc/resolv.conf” do?

If executing this command resolved your issue ...READ MORE

Jan 23, 2019 in Linux Administration by joey
2,901 views
–1 vote
1 answer

How to use help command

The help command is limited and it ...READ MORE

Jan 11, 2019 in Linux Administration by Omkar
• 69,210 points
395 views
0 votes
1 answer

Create new user on Ubuntu

Hey @Eric,  Follow these steps: Go to your terminal  Execute ...READ MORE

Jan 10, 2019 in Linux Administration by Noah
2,804 views
–1 vote
1 answer

How to get octal file permission in linux?

You can use this: stat -c "%a %n" ...READ MORE

Jan 3, 2019 in Linux Administration by Omkar
• 69,210 points
2,094 views
–1 vote
1 answer

How to use help command for ls?

The help command is limited and it ...READ MORE

Jan 3, 2019 in Linux Administration by Omkar
• 69,210 points
2,995 views
0 votes
1 answer

Regarding Edquota soft and hard limits

The provided value for soft and hard ...READ MORE

Jan 3, 2019 in Linux Administration by Omkar
• 69,210 points
451 views
+2 votes
1 answer

Not able to install npm on Ubuntu

Try installing npm using aptitude: sudo apt install aptitude sudo ...READ MORE

Nov 28, 2018 in Linux Administration by Omkar
• 69,210 points
7,731 views
0 votes
1 answer

Constraints for getting commands executed by cron

I think the problem could be those ...READ MORE

Nov 14, 2018 in Linux Administration by nirvana
• 3,130 points
504 views
0 votes
1 answer

How can i change the value of /proc/sys/kernel/shmmax in a container?

Please follow the below command and set ...READ MORE

Oct 5, 2018 in Linux Administration by Frankie
• 9,830 points
2,040 views
0 votes
1 answer

How do I verify the kernel parameters to check for the pre-requisities of Oracle 11 + versions?

Please check the below-mentioned syntax and commands: To ...READ MORE

Oct 5, 2018 in Linux Administration by Frankie
• 9,830 points
11,435 views