General :: Minimize Typing When Frequently Changing Directories?

Aug 4, 2010

What are some good Linux commands to make switching between different directories on the command line easier?

I often have to switch between different directories with long names, e.g.

Typically, I use tab completion, so it's something like this:

But it's annoying because all these names are so similar, so tab completion doesn't really save much work.

What tricks do you use to minimize typing in such situations?

I do use pushd and popd sometimes, but here it won't help much because I don't visit the directories in a given order.

For a nice solution, see the accepted answer to my other, related question. Basically, just create an alternative cd command:

function cd2 { select a in $1*; do cd $a; break; done }

It will list all possible completions at once:

And you can pick one by typing its number.

View 6 Replies


ADVERTISEMENT

General :: Commands For Changing Directories In Fedora

Jan 19, 2011

What are the commands for changing directories in fedora linux i wanted to install something so i put it in my desktop and documents folder but i couldn't install becuase i couldn't change directories.

View 4 Replies View Related

Ubuntu :: Changing Close And Minimize Effects In 11.04

Jul 8, 2011

I was wondering how you change the open, close and minimize effects using ccsm in ubuntu 11.04. I have been try to use the check boxes but it has no effect.

How do you change the size of the dash like on the ubuntu site: [url]

View 3 Replies View Related

Ubuntu :: Click On A Text Box To Write And Star Typing Only To Find Out Typing Somewhere Other Than Where Clicked?

Jun 17, 2010

Half the time I click on a text box to write and star typing only to find out I'm typing somewhere other than where I clicked.It's not dwell click and the active text box seems to be related to mouseover.

View 2 Replies View Related

Programming :: Print Message When Changing Directories

Jul 21, 2010

I need some direction on a small scripting question. I've been doing some development and storing the code on a network drive with multiple user access. My development is getting complex enough that it is time to set up a svn repo for it. I would like to set up a little script (if possible) that prints a message/reminder to whomever is accessing the code directory stating that the code is ultimately stored in svn and any changes need to be checked in, etc. Is there a way to have linux print a message to the screen based on a 'cd /specific_dir/' command? So far google is mum on the topic. Using Debian and bash shell.

View 5 Replies View Related

Ubuntu Installation :: Changing Software Install Directories ?

Jan 6, 2010

If it was possible to move the software install directory from the main drive to a secondary drive

I am using a ubuntu fork (mint linux) with a eee pc the primary drive is very small at around 3GB I've added my second drive to the fstab file in etc so it mounts on start up is there anyway I can make programs install to that second drive or to move my current applications to that drive?

View 3 Replies View Related

Security :: Group Write Access For Newly Created Files / Directories Without Changing Umask

Apr 3, 2009

I have several directories, each owned by root and a group of the same name,By setting the sgid bit, I made sure that newly created files and directories are owned by the correct group, and that directories have the sgid bit set too.On each newly created directory or file, the permissions are set to 755. This is because this is the default umask, and I cannot change a users umask. I actually only want files created below a particular directory to have group write access, inheriting this behaviour to newly created directories properly.I'm not on samba or NFS, I have to do this for SSH users.The filesystem is ext3.I started to fool around with ACLs, but couldn't find what I was looking for.

View 3 Replies View Related

General :: Create A Backup Directory And 3 Directories Within That And Some Files Within The 3 Directories And Then Back Them Up Ot Restore Them?

Dec 19, 2009

i am in need of linux help. iam at college and i need this back/restore script to pass this final part of an assessment. i require a backup script that will not only backup but also restore files to the relevent directories. e.g. users are instructed to store all wordprocessor files in a directory named wp. so i am needing to create a backup directory and 3 directories within that and some files within the 3 directories and then back them up ot restore them. l know i should/have to do this myself by been trying to get/understand info for the last few days and came up with zero.

View 14 Replies View Related

General :: Multiple Users To Create Directories Over SFTP So The New Directories Keep The Same Permissions?

May 15, 2011

I want to make a webserver with multiple users allowed to login through SFTP to a specific folder, www.Multiple users are added, lets say user1 and user2, and all of them belonging to the www-data group. The www directory has an owner www-data and a group www-data.

I have used chmod -R 775 on the www folder, but after I try to create a folder test through my SFTP server (using Filezilla) the group of the directory created has only r and x permissions, and I am not able to log in with the second user user2 and create a directory within www/test due to a lack of w permission to the group.

I also tried using chmod 2775 on www directory, but without luck. Can somebody explain to me, how can I make it so that a newly created directory inherits the root directory group permissions?

View 2 Replies View Related

OpenSUSE Network :: SAMBA - Changing Default Permissions On Files And Directories Created From Windows Clients

Mar 9, 2010

I have a fileserver running openSUSE 11.2 and samba services for file access from MS Windows based workstations. My question relates to changing default permissions on files and directories created from the windows clients.

Following are extracts of the /etc/samba/smb.conf file :

Even with the above entries, sometimes there are files and directories created by the windows clients having permission

Probably my lack of understanding in ACLS.

View 9 Replies View Related

General :: How To Store Files / Directories In Different Different Directories?

Mar 23, 2011

I am writing a script, in that my requirement is, if all the fill types stored in one directory from that we need to separate different different directories based on the file types.

for example in a directory(anish). 5 different types files
1- directory
2- .txt files
2- .sh files

like that and my requirement is the (1- directory is moved to one new directory(dir) which we are given in the script)and (2 .txt files are moved to another new directory(test) which we are given in the script)and ( 2 .sh files are moved to another new directory(bash) which we are given in the scrip)finally the directory anish should be empty..using bash script.how it is possible !!

View 7 Replies View Related

General :: WINDOW XP Application Hangs Frequently

Jan 19, 2011

we have new dedicated servers to run our application server oracle developer forms 6i, remember we have not install anything other the rhel 5.5 64 bits, since it is BIN files to execute from we have problem encounter, we create a new share/premia where our oracle forms 6i and report 6i BIN or say executables there, and it work fine we made setup. but while users are working every all of sudden it hang and says not responsing.

View 1 Replies View Related

General :: CentOS 5.5 Is Rebooting Frequently Without Any Logs On The Server?

Feb 4, 2011

My server is rebooting frequently(4 to 5times a day) without any logs, can any one help me out to fined the cause for the unexpected reboots of the server. reboot system boot 2.6.18-194.3.1.e Fri Feb 4 15:16 (00:-24)

[root@elastix log]# cat /etc/redhat-release
CentOS release 5.5 (Final)
[root@elastix log]# uname -a
Linux elastix 2.6.18-194.3.1.el5 #1 SMP Thu May 13 13:09:10 EDT 2010 i686 i686 i386 GNU/Linux

[code]...

View 2 Replies View Related

General :: X11 - Tell If User Is Actively Typing?

Nov 16, 2010

I'd like to write a little script to ask me what I'm doing at regular intervals, but I'd like it not to grab focus if I'm in the middle of writing an email or filling in a password. The two options I've come up with are (1) notify-send/pynotify which lets me pop up a notification bubble in the top right of my screen which is perfect, but can't seem to include a text entry field; and (2) zenity and similar which bring up a window with a text field, but steal focus when they do.

View 2 Replies View Related

General :: Keyboard Input Time Is More For Typing Commands?

Aug 15, 2010

While typing commands it takes more time to type.let me know on how to correct this

View 3 Replies View Related

General :: Unpredictable And Arbitrary Crashes When Typing An Email

Jan 13, 2011

I experience unpredictable crashes, When typing an email I am unable to recapture that which I wrote. without warning the "back" button disappears. it is sometimes there and sometimes not.

View 3 Replies View Related

General :: Embedded Stability - Unstable By Cutting Power Source Frequently And It Does Not Boot Anymore

Apr 11, 2011

I'm developing an embedded Linux (it is almost over now). What I'm struggling with is the system goes unstable by cutting power source frequently and it does not boot anymore. It even does not perform fsck. The system just has a XFCE with a fixed Qt App autoloaded to display some charts. My question is that how commercial embedded Linux distros (like Wifi AP's management Linux, ...) avoid this problem?

View 2 Replies View Related

General :: Log On Automatically To Remote Server Without Typing Everytime Password And Login?

Mar 24, 2011

i need to connect to a remote linux server on certain times (automated), but i need to log on to the server. So i want to make a script (shell perhaps) that periodically connects to the server and checks some files and folders.How do i automate it and how can i log on automatically to the remote server without typing everytime the password and login (the script should do it himself)

View 14 Replies View Related

General :: Error Opening Terminal - Edit Sudoers File By Typing Visudo

Nov 13, 2010

Recently I migrated from Ubuntu to Debian, first thing i wanted to do was to give myself sudo permissions and lock the roir account. By default sudo group don't have permissions to do this on debian, so i wanted to edit sudoers file by typing visudo. But i keep getting this
error: Error opening terminal: vanilla How can i solve this.

View 1 Replies View Related

General :: Write A Script To Execute A Fortran Code That Reads In Parameters From Keyboard Typing?

Apr 18, 2011

I am trying to write a script (especially C-shell) to execute a fortran code that reads in parameters from keyboard typing. I will have to process this .F code for many times with the parameters the same for all my data files, therefore, I don't have to type in everytime I execute the .F code. But I don't know what is the command in c shell to read in a text files that contains all the parameters I want and can make the shell read in appropriately to feed the .F code.

View 3 Replies View Related

General :: Hide Or Minimize X11 Window From Console?

Sep 9, 2010

Window is full-screen and grabs everything.New windows are appearing behind it.I cannot just kill that application.I'm logged in as root remotely through the SSH.Expecting something like that:

$ xcontrol
> ls
window id: PID: Window class: Window name: ...

[code]....

View 2 Replies View Related

General :: How To Minimize Bash Shell Prompt

Oct 26, 2010

Currently the terminal prompt looks like this:[karlis@karlis-desktop current_folder]$How can I minimize the prompt, so that it only shows $ or # without extra info in square brackets?I checked the preferences for the default Gnome-Terminal and Terminator - there are no settings for this. It is pretty hard to use terminal when working in directories with long names.

View 1 Replies View Related

General :: Get Alternative Minimize Effect In Ubuntu?

Apr 19, 2011

I don't know if I saw this minimize effect in ubuntu but definitely have seen it on other nix systems. It's basically a little button in the menu bar that when clicked, "minimizes" the window so that only the menubar shows.how to get it working on ubuntu.

View 1 Replies View Related

General :: Ubuntu Server 10.04 - Minimize VirtualBox HDD

Jun 23, 2011

I have Ubuntu Server 10.04 TLS installed on a Virtual Machine in a VirtualBox. The size of the Hard Drive is dynamic growing hard drive and the maximum is 32GB. At the beginning I had 4GB on the Hard Drive and the size of the .vdi was 4GB. Lately the size of data on the disk is 15GB but the size of the .vdi is almost 32GB. Why is that? How can I pack / optimize / defrag the HD so it will be the same size of the data on the disk?

View 2 Replies View Related

General :: Close Maximize Minimize Disappeared?

May 30, 2010

I installed LM9 and it seems like my close maximize minimize disappeared

View 3 Replies View Related

General :: Minimize Evolution To The System Tray In Ubuntu?

Feb 23, 2010

In Ubuntu some applications can be set to minimize instead of exit on close. For example, Empathy minimizes to the system tray (mail icon) when the close button is pressed in the application window. How do I make Evolution do this as well?

Essentially I would like to have Evolution hidden in the system tray instead of having to re-launch it every ten minutes to check for new messages (or leave it open and clutter the taskbar).

View 2 Replies View Related

General :: Switching The Close,maximize,minimize To Right Side Of The Window?

May 17, 2010

How to switch the close,maximize,minimize to right side the window in Ubuntu10.04. I found a way in www.makeuseof.com but that does not work.Run Applic.->gconf-editor->apps/metacity/general->menu:maximize,minimize,close.

View 2 Replies View Related

General :: Explorer Windows Close/minimize Buttons Disappeared In Genome?

Oct 23, 2010

Windows close and minimize buttons have disappeared in Genome. In other desktops like KDE and cfxe they are present BUT I am using Gnome.My distro is Ubuntu ultimate 2.7 64bit.

View 1 Replies View Related

Red Hat / Fedora :: Restrict Users To Their Home Directories And Allow Admins To Have Different Home Directories?

Jan 20, 2010

Is it possible to restrict users to their home directories and allow admins to have different home directories? Essentially I want users to have a folder in /var/www/html/$USER and admins to have either unrestricted access or have their root directory be ./ or /www or /etc. I have is set now so users have access to thier home direcotry but I need to upload web files as admin.

So far I have created:
chroot_list
user_list

[code]....

View 1 Replies View Related

Ubuntu :: 11.04 Frequently Crashes / Why Is So - Fix It?

Sep 1, 2011

Anywhere from 2 -> 6 times a day, my computer will freeze up. If any audio was playing, it will repeat the last few seconds over and over again.
I've been dealing with the problem for a couple of months now, with no solutions.

It can happen anytime, but it tends to happen on my screensaver about 50% of the time after I've locked my computer and during the early morning (12am onwards) when I have a full-screen video playing, but it's never done it at night in the same circumstances.

I am confused and just can't figure out the problem.

Computer info:
Mac Mini (2010) 2.4GHz
8GB RAM
Dual 24" Monitors @ 1920x1080.
Ubuntu 11.04 64-bit.

View 2 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved