Tagged Questions
1
vote
3answers
58 views
How to know which is the default script shell in Centos?
I'm using Centos 6 and after reading about different shells and dash implementasion as sh replacement in Debian, Ubuntu and Fedora, made up my mind to replace sh with dash as the script shell in ...
4
votes
3answers
123 views
What process is running before I even get a prompt?
When I log in to a specific server I see the following:
Note that I get get Last login: ... information but no prompt. I hit Ctrl+C and only then do I get my prompt, thus proving that my username ...
1
vote
1answer
97 views
Cannot enter in centOS with any user
I am using cent OS Operating system without GNOME.
In the starting, it asks
localhost login:
Password:
It has one user named service under group name service whose password is also service.
I ...
1
vote
2answers
1k views
tar: Unexpected EOF in archive
I am trying extract .tar.gz file it but with no luck
gzip: stdin: unexpected end of file
tar: Unexpected EOF in archive
tar: Unexpected EOF in archive
tar: Error is not recoverable: exiting now
the ...
3
votes
1answer
314 views
Can I refresh my shell within a shell script?
Very new to Bash scripting...
I am trying to setup a script that starts with a minimal CentOS 6 install and provisions it for Ruby development.
#!/bin/bash
# Add PostgreSQL Repo
rpm -i ...
5
votes
2answers
518 views
Giving some users only SSH and shell access with limited resource usage
I'm trying to make a user that can access my server through SSH and allow it to have a shell, limited to using only, say screen and irssi. And it shouldn't it be able to see other directories except ...
5
votes
2answers
907 views
/dev/sda2 has gone 49710 days without being checked, check forced
Why the shell show "/dev/sda2 has gone 49710 days without being checked, check forced." at centos start and then reboot?
......
/dev/sda2: Superblock last mount time is in the future. FIXED.
...
28
votes
11answers
20k views
How can I get distribution name and version number in a simple shell script?
I'm working on a simple bash script that should be able to run on Ubuntu and CentOS distributions (support for Debian and Fedora/RHEL would be a plus) and I need to know the name and version of the ...