I have a shortcut as follows:  Exec=gnome-terminal -e 'sshpass -p "mypass" ssh myuser@123.456.789.214'  Question: how can I directly change the starting directory, eg to /var/log? I tried myuser@123.456.789.214:/var/log but that did not work.
90708
I SSH into a multitude of different servers every day and some of them have different filesystem structures for their websites. Each time I change server, I have to work out where I'm going to get to the files I really want (because it's very rarely that I want to be in ~). I use Fabric files to automate all my actions (pushing to git, automated SSH to the server to pull from git, restarting the web application, changing dependencies, etc), so I was wondering if I couldn't also tell it that I want to SSH into the right directory so I can run fab ssh and be in a normal SSH session, just in the right place and start working immediately. This is not about Fabric though; please ignore it. Fabric is just running a batch of commands. My argument is with the ssh command. That's what I'll be telling Fabric to run. So how I can get ssh to cd into a specific directory on login? Note: this cannot be a server or user-wide thing. I have multiple websites under one user on some servers so sticking something in ~/.bashrc would not work for me.
53101
Is there a way to restart GNOME Shell other than by using Alt + F2, R + Enter? With respect to the question, I have gone through , but I didn't get what I was looking for. I am looking for a command which exactly does what Alt + F2, r + Enter do. Please note that I am not willing to do the gnome-shell -- replace command... I did check both the things Alt + F2,r Enter and gnome-shell --replace... There is a lot of difference, I found...
1674
I'm trying to modify my Firefox shortcut in Unity so that it started with a specific parameter. From a terminal, I would start like this:  VDPAU_DRIVER=va_gl firefox   I tried modifying the firefox.desktop file so that the Exec line looked like  Exec=VDPAU_DRIVER=va_gl firefox   But this doesn't work (the application doesn't start). I thought it could be a problem with two "=" signs, so I tried  Exec="VDPAU_DRIVER=va_gl firefox"   but this doesn't work either. What should I do?
29882
First i did pwd, it says:  /home/user   I changed my directory using :  cd /Italic/Food/Places   Now, I want to go back to original directory: /home/user. How can I do this?
2604
Using Gnome 3.18. I share files between other family members, but the default umask on my distro (archlinux) is 0022. So every file/directory created is not writable for our common group.  I tried to put umask 0002 in /etc/profile but the gnome session is still using 0022. It's working for a login bash shell, though.  I also tried to add this line in /etc/pam.d/system-auth:  session   required  pam_umask.so umask=0002  It has the same effect as the one in /etc/profile. I tried  If I change the umask manually in a gnome-terminal shell, then I launch an application from it, say gedit, then the files created by it have the wanted permissions. If I launch gedit from the gnome menus, it doesn't. So my matter is really to set the umask for the gnome session, and I can't find where to do it.  EDIT (to answer Gilles' comment): I'm using gdm 3.18 as the DM. I also tried to add the pam_umask line into /etc/pam.d/gdm-launch-environment. All other gdm-* files contains includes of session from the system-auth file, so they should not need more. It doesn't change anything.  /etc/login.defs contains UMASK 077 but also USERGROUPS_ENAB yes which should set the umask to either 0077 or 0007 for users whose primary group is the username.  The only file that contains 022 for umask in /etc is /etc/profile but that was my first try.  As for /etc/Xsession.d, I don't have this directory. Besides, as wayland is now the default display server, I'm not sure the umask should be set as part of X initialisation, even if I'm still using it myself.
74717
I have two machines, both running kubuntu: server &amp; client. I'd like to connect to server from client and start the full graphical interface without fear that some commands would be run as client user.  So, ssh -XC works and I can also start graphical programs from it just fine.  However, when I type startkde in the ssh console, it says "KDE seems to be already running on this display." Which is true, but not for the same user account.  I tried exiting graphical interface and logging in from tty, but that then (unsurprisingly) failed to start any graphical programs, including kde.  How then can I do this such that I could simply log in just as I log in with a local user? Use client machine as a dumb terminal.
59930
How do I change from user to superuser (root)? What command do I use in the Terminal to switch to root? I have tried --help but I get lost with all the listed help. I'm looking for a recent download/install so I can use it.
25891
I start multiple PuTTY sessions everyday with a specific path in each session.  I have made a command in batch file as  Start "c:\putty.exe" abc@1.1.1.1 -pw abc123 22   How do I proceed further to open PuTTY directly in a specific remote directory.  I have 20 sessions.  Please assist.
74100
I am new to Ubuntu, and was wondering whether it is posible to open a terminal with a path matching your current location in the file manager? In Windows it was very easy, but how do you do it in Linux?
43281
I frequently login to a server, then cd into a specific directory. Is it possible to simplify these two commands into one?   ssh bob@foo   cd /home/guest   I'd like to avoid changing anything on 'foo' if possible, as I'll have to clear it with the server administrator. I use bash, but I am open to answers in other shells.
32124
I want to cd into /var/named but it gives me a permission denied error, and when I want to use sudo to do this I am not permitted. What is the technical reason for this, and is it possible to do this some other way?
70572
I have created a .bat file which automatically takes the SSH server (Jump Server) access. Now, I have couple of commands which I would like to hit in that window.  For an ex. (To take root access)  usrun -u root rush   With this command, it'll ask me to enter the password.  So, how can I achieve this entirely through .bat file?
3828
This is irritating me. I seen several suggestions (all using different files and syntax) and none of them worked.  How do I set an environment variable for a specific user? I am on debian squeeze. What is the exact syntax I should put in the file to make ABC = "123"?
3738
I created a new home directory for myself on my SSH server and when I log in my bashrc is never loaded, I always have to type . ~/.bashrc after I log in. How can I save keystrokes so this is done automatically?
116250
Is it possible to create desktop shortcut, that would do as follows:   open Terminal change directory make a command inside that directory type password (sudo)   I tried with Terminal profiles, but I didn't find option for 2. and 4.
105137
I'd like to log in as a different user without logging out of the current one (on the same terminal). How do I do that?
72021
When i use the cp or move command in a terminal window, i'm currently with bash in a certain folder like this.  NES@server:~/Desktop/dir1$   And now i wanna copy a file from here ~/anotherdir/dir2 into the current chosen folder in bash (dir1) i would use the command  cp ~/anotherdir/dir2/file ~/Desktop/dir1   does a shortcut string exist to refer to the current chosen directory? So that in this example i don't have to provide the full path to the target dir, but the command knows it should use the current chosen directory in bash? i.e. as ~ stands for the home directory?