Reputation
3,002
Top tag
Next privilege 5,000 Rep.
Approve tag wiki edits
Badges
4 20
Impact
~175k people reached

Apr
20
reviewed Approve How is a directory a “special type of file”?
Apr
17
reviewed Approve Bash script won't work on current directory
Apr
17
revised list all c files in sub directories and their parent directory
added 151 characters in body
Apr
17
comment list all c files in sub directories and their parent directory
@tomato Can you be more specific? What is last directory name in this case? If the files are created by the user itself and the username is most likely equal to the home directory name then this find command will work.
Apr
17
comment list all c files in sub directories and their parent directory
Probably because you are running find as a normal user. You cannot access files on anothers home directory. put sudo or su -c 'find.....' in front of the command.
Apr
17
answered list all c files in sub directories and their parent directory
Apr
16
comment Hide curl output
Append >/dev/null at the end. Read more about File Descriptors on mywiki.wooledge.org/FileDescriptor?highlight=%28FD%29
Apr
15
comment How to find out if a system uses SysV, Upstart or Systemd initsystem
Prior asking this question, I surely checked if it was asked already. I'm not sure how this question is related to the other one, let alone being a duplicate
Apr
15
revised How to get rid of “\r” a the end of the line comming from pipeline in bash
added 48 characters in body
Apr
15
reviewed Approve Run a command a as a certain user and multiple groups with sudo
Apr
14
reviewed Approve Using the grep filter
Apr
14
awarded  Student
Apr
14
comment How to find out if a system uses SysV, Upstart or Systemd initsystem
wow I didn't know about the -S option. This gives some more insights about the initsystem. Thanks a bunch!
Apr
14
comment How to find out if a system uses SysV, Upstart or Systemd initsystem
@YoMismo dpkg -l shows that systemd is indeed installed but it seems not to be using it. For what I can see here: dpaste.de/KiuD
Apr
14
comment How to find out if a system uses SysV, Upstart or Systemd initsystem
that makes sense. I'm aware that there is no 100% guarantee without checking everything carefully. Thanks again for your time and effort!
Apr
14
awarded  Scholar
Apr
14
accepted How to find out if a system uses SysV, Upstart or Systemd initsystem
Apr
14
comment How to find out if a system uses SysV, Upstart or Systemd initsystem
Alright. I think the answer is acceptable considering the undefined nature of the initsystem. Checking the existence of /usr/share/upstart, /sr/lib/systemd and /etc/init.d/ could help me to write an automated script which somehow will determine the initsystem. Thanks you!
Apr
14
comment How to find out if a system uses SysV, Upstart or Systemd initsystem
@WarrenYoung since I work on different platforms, I want to be able to see instantly what initsystem is running on what platform so I can focus on organizing startup scripts, creating and modifying new ones and so on. Eventually I want to modify the motd(Message of the Day) which tells me what initsystem runs once I log in on a system.
Apr
14
comment How to find out if a system uses SysV, Upstart or Systemd initsystem
@YoMismo I'm not sure how I would use dpkg -l or yum to identify the initsystem. On Fedora for example: ps -p 1 -o command shows /usr/lib/systemd/systemd --switched-root --system --deserialize 20 On Debian wheezy the same command produces init [2]