Trending questions in Linux Administration

0 votes
1 answer

How to have the cp command create only if necessary folders while copying a file to a destination

mkdir -p /foo/bar && cp myfile "$_" ...READ MORE

Jul 19, 2019 in Linux Administration by Shubham
• 13,490 points
1,412 views
0 votes
1 answer

How to execute a linux command repeatedly after a set time?

To watch the step every say 30 ...READ MORE

Jul 26, 2019 in Linux Administration by ajs3033
• 7,300 points
1,086 views
0 votes
0 answers

How to display content part in seeddms full-text index info?

I have installed the seeddms in my ...READ MORE

Jul 15, 2019 in Linux Administration by nmentityvibes
• 420 points
1,511 views
0 votes
1 answer

HTTP POST and GET using cURL

You can just add | grep }| ...READ MORE

Jul 22, 2019 in Linux Administration by Upasana
• 8,620 points
1,070 views
0 votes
1 answer

Command to tar directory excluding certain files/folders

$ tar --exclude='./folder' --exclude='./upload/folder2' -zcvf /backup/filename.tgz . Try ...READ MORE

Jul 13, 2019 in Linux Administration by Shubham
• 13,490 points
1,298 views
0 votes
1 answer

CentOS Error: 64 bit bad ELF interpreter

In my experience, a single yum command will ...READ MORE

Jun 20, 2019 in Linux Administration by Shubham
• 13,490 points
2,245 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,825 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
13,232 views
0 votes
1 answer

copy and create destination directory using bash

mkdir -p "$d" && cp file "$d" try ...READ MORE

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

Display shared libraries used by executables in linux

In order to do this, you need ...READ MORE

Jul 3, 2019 in Linux Administration by ajs3033
• 7,300 points
1,457 views
0 votes
1 answer

Centos 7 network setup

Power off the VM and then go ...READ MORE

Jul 5, 2019 in Linux Administration by Vasini
1,115 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
2,078 views
0 votes
1 answer

Change the output colour of echo

Try using ANSI escape codes as the following; Black ...READ MORE

Jul 13, 2019 in Linux Administration by Shubham
• 13,490 points
740 views
0 votes
1 answer

Error: tkinter for Python Installation

It isn't easy to install Tkinter locally ...READ MORE

Jul 4, 2019 in Linux Administration by Upasana
• 8,620 points
976 views
0 votes
1 answer

How to find the group associated with a user in linux?

To list all the groups groups or to list ...READ MORE

Jun 21, 2019 in Linux Administration by DareDev
• 6,890 points
970 views
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
1,005 views
0 votes
1 answer

Running a cron job at fixed intervals of time

Just use this instead: 0,30 * * * ...READ MORE

Jun 21, 2019 in Linux Administration by ajs3033
• 7,300 points
950 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
1,081 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,247 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,375 views
0 votes
1 answer

Script file name in a Bash script

$0 will give you the complete basename. ...READ MORE

Jun 20, 2019 in Linux Administration by Shubham
• 13,490 points
803 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
910 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,908 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
1,047 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
815 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
1,044 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
788 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
4,126 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
824 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,567 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,784 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
899 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
1,045 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
4,262 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,406 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
1,070 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
1,034 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,877 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
1,024 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
3,295 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
672 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,305 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
909 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
815 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
977 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,220 points
8,316 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,350 points
2,852 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
644 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
820 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
863 views