Get current directory name (without full path) in Bash Script
location: linuxexchange.com - date: November 24, 2012
How would I get just the current working directory name in a bash script, or even better, just a terminal command.
pwd gives the full path of the current working directory, e.g. /opt/local/bin but I only want bin
How do I get active directory to add users to linux server
location: linuxquestions.com - date: March 29, 2013
In my school they use active directory to manage users that login to a number of things. That being the wireless network, the logins for the lab computers if you want to access a windows share that is mounted automatically. Plus this adds users to the email server (runs centos), and their ftp and ssh server (also runs centos). I want to know how to make linux server automatically add users to it's local user database when an active directory user is created, also so they can use the ssh, email and ftp server with the credentials that are in the active directory server. And if it's not too much to ask I also want it to add joomla users to my joomla interface as well. perhaps make it add users when they register through the joomla interface but this is only a bonus, I originally didn't want this part of the question but if you have any ideas you are free to express any ideas you may have.
BASH: How to get current workin directory?
location: linuxquestions.com - date: September 15, 2003
is anyone who could give me an advice how to check the correctness of current working directory? Not by $PWD which
writes the full path, just the name of directocty in which you are.
how to save file retrieve from linux through ftp service in current directory
location: ubuntuforums.com - date: October 6, 2008
i set up ftp service in red hat linux 9.0 and i used php cording to get and put file in linux from windows xp. if i get file using php cording it will open a new browser to display the content of the file and the file automatically saved in www folder in appServ. how to save the retrieve file in other directory?
Adding any current directory './' to the search path in Linux
location: linuxexchange.com - date: November 28, 2014
How do you add any current directory './' to the search path for executables in Linux?
How to permanently add current directory to PATH in Linux? [duplicate]
location: linuxexchange.com - date: October 30, 2011
Add folder to PATH
I want to a add a directory to my bash to search in, and I am using the $PATH=.... it works however when I open a new command window it is not there.
How can I permanently add this to the path on Linux?
How can I find all immediate subdirectories of the current directory on Linux?
location: linuxexchange.com - date: July 2, 2014
How can I find all immediate sub-directories of the current directory on Linux?
List files recursively in Linux CLI with path relative to the current directory
location: linuxexchange.com - date: August 1, 2013
This is similar to this question, but I want to include the path relative to the current directory in unix. If can do the following:
ls -LR | grep .txt
But it doesn't include the full paths. For example, I have the follow dir structure:
The code above will return:
How can I get it to include the paths relative to the current directory using standard nix commands?
get current time in seconds since the Epoch on Linux, Bash
location: linuxexchange.com - date: May 20, 2014
I need something simple like date, but in seconds since 1970 instead of the current date, hours, minutes, and seconds.
date doesn't seem to offer that option. Is there an easy way?
bash get the parent directory of current directory
location: linuxexchange.com - date: June 7, 2015
If I have a file path as such
how do I change the string so it will get the parent directory?
Page: 1 2 3 4 5 6 7 8 9 10