@Joseph TKLee: Thank you for such a quick response. I created this script.. err rather copied it.. in my bin directory, which is completely empty, save for this script. I am going out on a limb here but I am guessing my directory should have a list of users somewhere inside in order for it to work properly? (apologies.. I am about as new to this as it gets.)
---------- Post updated at 11:11 PM ---------- Previous update was at 11:03 PM ----------
Quote:
Originally Posted by Joseph_TKLee
run the follows on your environment. ( not sure which one is correct $user or $USER in your environment)
You will get an idea what it is meant to do.
Cheers,
Last edited by DanableLector; 11-28-2012 at 01:12 AM..
Reason: n/a
I'm just getting started to lean C and I'm using Ubuntu today I found a tutorial at this site: http://einstein.drexel.edu/courses/CompPhys/General/C_basics/c_tutorial.html and I got an error after compiling the fist code:
#include < stdio.h>
void main()
{
printf("\nHello World\n");
} ... (9 Replies)
Ok here is the deal, I have a command given to me by some systems guy who I cannot get ahold of on the weekend without paying him alot of money to help me. I need to get this done before Monday as I am just getting pummeled by DOS attacks. The comand given was....
netstat -ntu | awk '{print... (1 Reply)
I have a file with 3 digit numbers in it formatted as such:
123
065
321
How would I go about seeing if each number is less than 100 and if so outputting it to another file
Yes, I am a bit of a noob. I have tried with grep but I don't think it'll work.
Any general direction would be... (6 Replies)
I dont know what I am doing wrong but I would like to redirect the stderr output to a file?
the specific command is this
time wget http://www.something.com/somefile.bin
All I want to see is time's output which is stderr so I can see how long the file download took. I've tried redirecting... (2 Replies)
I'm a Linux guy who is tring out BSD for the first time...
What is the BSD program to automatically fetch and and install software?
Is it pkg_add? Will pkg_add automatically fetch and and install software? Does it work on all BSD variants?
This is all I could find, but I wanted to make... (5 Replies)
I'm trying to parse the website, finance.yahoo.com/q?s=ge&ql=1, and retrieve the info between <span id="yfs_l84_ge">18.98</span>, so 18.98.
What would be the best way to go about this in a bash script?
Any help or suggestions will be much appreciated.
Thanks! (2 Replies)
Hello,
I am new to shell scripting and i am trying to figure why is this not working with else statement.
I am searching for every directory in that DIR i am in, however the "else" seems to be triggered whenever the run the script..
Much thanks in advance!
#!/bin/shell
for item in... (3 Replies)
I'm having some difficulty with convincing Expect to do what I need..
I have a loop that waits for input, a specific phrase of text followed by a single word. I need Expect to capture that word following the specific phrase. It should then store the word in a variable.
I'm fairly sure it's... (6 Replies)
Hello All,
I have a file of ip addresses called activeips.txt
What I'm trying to do is run a simple bash script that has a loop in it. The loop is a cat of the IP addresses in the file.
The goal is to run 2 nmap commands to give me outputs where each address in the list has an OS... (11 Replies)
Discussion started by: Dirk_Pitt
11 Replies
LEARN ABOUT CENTOS
xdg-user-dirs-update
XDG-USER-DIRS-UPD(1) User Commands XDG-USER-DIRS-UPD(1)NAME
xdg-user-dirs-update - Update XDG user dir configuration
SYNOPSIS
xdg-user-dirs-update [OPTION...] [--set NAME PATH...]
DESCRIPTION
xdg-user-dirs-update updates the current state of the users user-dirs.dir. If none existed before then one is created based on the system
default values, or falling back to the old non-translated filenames if such directories exists. The list of old directories used are:
~/Desktop, ~/Templates and ~/Public.
If an old configuration exists it is updated with any new default directories. Additionally, any configured directories that point to
non-existing locations are reset by pointing then to the users home directory. This typically happens when the users removed the directory,
so they likely don't want to use it anymore.
On the first run a user-dirs.locale file is created containing the locale that was used for the translation. This is used later by gui
tools like xdg-user-dirs-gtk-update to detect if the locale was changed, letting you to migrate from the old names.
xdg-user-dirs-update is normally run automatically at the start of a user session to update the XDG user dirs according to the users
locale.
OPTIONS
The following options are understood:
--help
Print help output and exit.
--force
Update existing user-dirs.dir, but force a full reset. This means: Don't reset nonexisting directories to HOME, rather recreate the
directory. Never use backwards compatible non-translated names. Always recreate user-dirs.locale.
--dummy-output PATH
Write the configuration to PATH instead of the default configuration file. Also, no directories are created.
--set NAME PATH
Sets the XDG user dir with the given name.
NAME should be one of the following:
DESKTOP
DOWNLOAD
TEMPLATES
PUBLICSHARE
DOCUMENTS
MUSIC
PICTURES
VIDEOS
PATH must be an absolute path, e.g. $HOME/Some/Directory.
FILES
The XDG user dirs configuration is stored in the user-dirs.dir file in the location pointed to by the XDG_CONFIG_HOME environment variable.
ENVIRONMENT
The XDG_CONFIG_HOME environment variable determines where the user-dirs.dirs file is located.
SEE ALSO xdg-user-dir(1), user-dirs.dirs(5), user-dirs.defaults(5), user-dirs.conf(5).
XDG XDG-USER-DIRS-UPD(1)