Linux Tag Directory

Browse Alphabetically:

Featured Linux Questions

  • Backup a CentOS server

    We recently moved over from a dedicated server to the VPS. It's working great but we need to shut down the dedicated server and close our account. So we need to do a full backup of the server before it's shot down. It's a CentOS server to. What's the best way to go about this? Thanks.

    ITKE357,100 pointsBadges:
  • Error when configuring Hadoop on CentOS

    I've been configuring Hadoop on one of our servers that's running CentOS. When I run start-dfs.sh, I keep getting this error: WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable So I'm not sure what to do here. Has anyone...

    ITKE357,100 pointsBadges:
  • CentOS 6.5 bridge can not start automatically after restart

    I installed CentOS 6.5 and configured bond and bridge interface. Bond configuration file: DEVICE=bond4.2301 NAME=bond4.2301 BONDING_MASTER=yes IPV6INIT=no VLAN=yes ONBOOT=yes BOOTPROTO=none BRIDGE=br-ext br-ex configuration file: DEVICE=br-ext BOOTPROTO=none ONBOOT=yes TYPE=OVSBridge DEVICETYPE=ovs...

    sluszkulcs5 pointsBadges:
  • CentOS Software RAID hard disk isn’t booting

    My Centos RAID 1 newly added hard disk not booting in separate after synchronization of Data. I have created the RAID 1 device and made one of the device as failed and after that I have added the new hard disk with the machine and synchronisation went properly but the OS boots only when two hard...

    Shiva195 pointsBadges:
  • How to decrypt PGP in CentOS

    I want to decrypt PGP in CentOS. How can I do that?

    AnkitJiniwal5 pointsBadges:
  • Why is my POP3 password always refused by Evolution?

    I have not yet been able to access my mail through evolution. It refuses my POP pass word continuously. I am getting very upset as I have to go elsewhere etc.

    B19645 pointsBadges:
  • Setup and configuring sendmail in CentOS

    I am a Linux newbie, and using CentOS for our organization, but I am stuck up with setup and configuration of sendmail. Can any one explain or suggest a source that clearly explains the steps?

    Linux - Ask the Expert270 pointsBadges:
  • Port block without using firewall or IPtables in CentOS

    How can I block the default listening ports or unwanted ports without the using of Firewall or IPtables command? Is it possible to block the ports in another way?

    ainurmiraz885 pointsBadges:
  • Not getting any ouput when running Linux bash script

    My friend and I are working on a scripting project that involves Bash. Here's what our script looks like: #!/bin/bash VAR1="$1" VAR2="$2" MOREF='sudo run command against $VAR1 | grep name | cut -c7-' echo $MOREF But when we run the script from the command line and pass it through the arguments,...

    ITKE357,100 pointsBadges:
  • How to go back to a previous directory in Bash

    Would there be a way to actually go back to a previous directory that we were using in Bash, without using pushd/popd? We're hoping for something like "back" so it returns us back to the directory that we were previously in.

    ITKE357,100 pointsBadges:
  • Linux: Chmod 755 all directories but no file

    In Linux, how can I chmod 755 all directories but with no file (recursively)? Also, I'm looking to do the opposite too: Chmod only files with no directory. Thanks so much.

    ITKE357,100 pointsBadges:
  • Linux: Redirecting output to a file

    I understand in Linux that to redirect the output from a screen to one of my files, I can use either the > or tee. But I can't figure out why the output is actually still the output to the screen (and now written to the file). Would there be a way to redirect the output just to the file?

    ITKE357,100 pointsBadges:
  • Bash: How to redirect output to a file and stdout

    I'm currently using Bash and I already know that calling foo displays any output from that command on the stdout. Also, I know that foo > output redirects any output to the file specified. But here's my question: Would there be a way to redirect the output to a file and have it displayed on...

    ITKE357,100 pointsBadges:
  • Finding a Bash script that replaces spaces with file names

    Would anybody be able to recommend a safe solution that replaces spaces with underscores in fire and directory names that start from a given root directory? Here's what I have so far: $ tree . |-- a dir | `-- file with spaces.txt `-- b dir |-- another file with spaces.txt `-- yet another file with...

    ITKE357,100 pointsBadges:
  • Bash: How to avoid the split on spaces

    In Bash, I'm trying to iterate over a list of files. I know the list is the result of a "find" command, so I came up with this: getlist() { for f in $(find . -iname "foo*") do echo "File found: $f" # do something useful done } It works fine until a file has spaces in its name. $ ls foo_bar_baz.txt...

    ITKE357,100 pointsBadges:
  • Determine the script file name in a Bash script

    Would there be a way to determine name of a Bash script that's actually inside the script itself. Here's an example: If my script is in the file "runme.sh", then how would I make it display as "You are running runme.sh" message (without any hardcoding)?

    ITKE357,100 pointsBadges:
  • Write bash script to change current directory to project directory in Linux

    My partner and I have been trying to write a small script that would change the current directory to my project directory. Here's what we have so far: #!/bin/bash cd /home/tree/projects/java We saved the file as proj, changed it to CHMOD, copied it /USR/BIN but when I try to call it by PROJ,...

    ITKE357,100 pointsBadges:
  • Is there a bash script that would kill a child process after a given time?

    We have a bash script that would launch a child process that crashes every once in a while and for no apparent reason too. Because of this, we are trying to launch this process for a certain amount of time and then kill it if it doesn't return successfully. Is there a simple way to do this using...

    ITKE357,100 pointsBadges:
  • Linux: Normalize a file path in Bash

    In Linux, I'm trying to transform /foo/bar/.. to /foo. Does someone know if there's a bash command that does this? Thank you.

    ITKE357,100 pointsBadges:
  • Running a Perl script as a system daemon in Linux

    Does anyone know of the easiest way to get a Perl script to run as a daemon in Linux? I'm using CentOS so I need it to start up with the system / shutdown with the system. A /etc/rc.d/init.d would be nice. Thanks for the help.

    ITKE357,100 pointsBadges:

Browse Alphabetically:

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following