http://paste.linuxassist.net/216055
Can someone give me the quick rundown on how this works?
http://paste.linuxassist.net/216055
Can someone give me the quick rundown on how this works?
It's quite simple; pushd is like cd but it remembers where you were. popd takes you back.
So if you are in your home directory, you can "pushd Documents" and you will be in your ~/Documents directory. "popd" takes you back to your home directory. As you push and pop, the commands show you the directory you are in and the trail of directories you can go back to:
The reason you can't find a manual page is that it's a bash built-in command. You can find details using:Code:$ pushd Documents ~/Documents ~ $ popd ~
... or here: https://www.gnu.org/software/bash/ma...Stack-BuiltinsCode:$ man bash
Please create new threads for new questions.
Please wrap code in code tags using the '#' button or enter it in your post like this: [code]...[/code].
There are several ways, but the way I'd do it is to make a new .desktop file that will appear as an entry in the standard menu:
You mentioned leafpad, so I assume this is Lubuntu?
Edit ~/.local/share/applications/lxterminal.desktop and append "--working-directory="/home/kevin/Documents" to the "Exec" line (which is near the bottom). This will make the LXTerminal entry in the "Start" menu open a terminal with the working directory set to your documents directory (assuming your username is "kevin" -- adjust accordingly).Code:$ mkdir -p ~/.local/share/applications $ cd ~/.local/share/applications $ cp /usr/share/applications/lxterminal.desktop ./
If you have a shortcut in the panel, you'll need to remove this and re-add the replacement shortcut from the Accessories menu.
Please create new threads for new questions.
Please wrap code in code tags using the '#' button or enter it in your post like this: [code]...[/code].
I'm not sure. I tried it in a VM and Ctrl-Alt-T didn't do anything. If it doesn't work, just delete that file from ~/.local.share/applications and add this line to the bottom of ~/.bashrc
That will apply to all shells, not just those started from menu/panel shortcuts.Code:cd Documents
Please create new threads for new questions.
Please wrap code in code tags using the '#' button or enter it in your post like this: [code]...[/code].
Bookmarks