New answers tagged

0

It sounds like a few things may be the cause of the issue with this file. First, a quick refresher on unix file permissions: Every file has a group and a user it is tied to. Every file also has three sets of permissions, the permissions for the user, permissions for the group, and permissions for everyone else. Permissions just means: is the file readable, ...


0

Alternatively, as recommended here on this gist, you can add the following in an executable file called vlc in your /usr/local/bin folder: /Applications/VLC.app/Contents/MacOS/VLC -I rc "$@" Make the file executable using chmod +x /usr/local/bin/vlc. At this this point, typing vlc in the terminal should give you VLC's command line functionality.


0

Several possibilities are listed in the post chat over lan from linux to linux. Besides netcat, the most-voted answer seems to answer your post. Here is a copy of that answer: You can use iptux. It is a very convenient GUI-based program. You can even send files (and entire folder) to your colleague. From a terminal, sudo apt-get install iptux will do the ...


0

A terminal is a text only way to interact with the OS. It is useful if you know all the commands and want to quickly check something. Where the OS GUI may change due to an update the terminal commands don't. In linux for example, everything can be done with just terminal, and the GUI is optional. For Windows, before Windows even existed, the OS was MS-DOS. ...


0

Alternate approach to trouble shoot, (It just worked for me and this is for osx users). Got to /Users/username/ Now press cmd + shift + . (Now all hidden files will be visible) Try to open the .bash_profile file and see your PATH item exists or not Comment items and echo $PATH and verify the edits are getting reflected. If not may be you are using zsh, so ...


0

As a general rule, Commands in a sh-based shell script will run synchronously, with the command being executed sequentially, such that each command completes before the next is started. The primary exception to this is when the command is explicitly started in, or moved to "the background", generally by placing an & at then end of the ...


0

It is because the sessions are closed when no data is transmitted (something like your firewall or load-balancer is dropping idle sessions) Check these two links for a solution: linux - How to prevent SSH from disconnecting if it's been idle for a while - Super User timeout - Keep SSH session alive while computer sleep? - Stack Overflow


0

You can run rm -r TestFolder/* The asterisk represents all the files inside "TestFolder" including folders and files. -r means "remove files recursively". If you are new in the terminal, run man rm for the manual of rm, there you will find all the commands in detail.


0

I repeated running "chsh -s /bin/zsh" from ssh terminal to my Big Sur then exit for a couple of times. Since the 2nd time it started to echo "no changes made". It seems until I logged into Big Sur from macOS UI with the same user account then the shell started to prompt zsh from ssh terminal.


1

To have this working as expected create a Windows environment variable called MSYSTEM and set it to your system type eg MINGW64 For a list of supported system types see git-sdk-64\etc\msystem For how to set the environment variables in Windows 10 see here: How do I set system environment variables in Windows 10? I'm unsure if this will cause any issues with ...


1

I don't know what is @server after the username It looks like the computer's hostname – your Ubuntu installation was given the name server. It can be changed using hostnamectl set-hostname, or through the /etc/hostname file, or through Ubuntu's Settings app (in the "About" section, I think). I want to have a normal terminal without the @server ...


0

for me it was lowering the cursor boost: Profiles -> Colors -> Cursor Boost


0

It looks like you have server-side configuration options (which generally belong in /etc/ssh/sshd_config) in your client-side configuration file. Compare the man pages for sshd_config (the server-side config, which includes the AcceptEnv, AuthorizedKeysFile, Subsystem, and UsePAM keywords) vs ssh_config (the client-side config, which doesn't have any of ...


0

If the above is not enough, you can install sshpass (see howto: https://stackoverflow.com/questions/32255660/how-to-install-sshpass-on-mac) then use sshpass -p YOUR-PWD ssh USER-NAME@HOST-NAME


0

I come looking for this every time i upgrade my mac. but going to iterm -> preferences -> profiles -> terminal -> and clicking enable mouse reporting Allows :set mouse=a to work. Ref: https://stackoverflow.com/a/62493548/167408


0

the quick fix is to just run it with bash. bash -c "aws sts get-caller-identity" or as said by mpy, you should check your config file or use one of this command aws sts get-caller-identity | cat aws sts get-caller-identity | less


0

For sake of completeness, if you're comfortable reading/running random powershell commands you find online... u/Thotaz had this solution over on Reddit Running the commands below will DELETE whatever is currently in your WinX shortcut directory, so don't use them if you have any custom shortcuts. Then it copies a fresh set of the shortcuts over from the ...


0

So instead, here's a super quick fix. Copy the correct shortcuts from the Default user in your own installation Open an explorer window Win+E and navigate here: C:\Users\Default\AppData\Local\Microsoft\Windows\WinX\Group3 The WinX directory contains 3 folders, Group1, Group2, and Group3. Each corresponds to the shortcuts that populate the 3 sections of the ...


0

Though stty shows ^O is binded to that useless action, with bindkey -s "\C-o" "cd - \n" , I can make use of ^O, , a keybind easy to press.


0

This conversation explains it all: P.S. Although "Inconsolata" is a great font to solve this alignment issue, but I found the English characters of this font are a bit too slim for me, so I'm currently still using "Consolas".


0

Open Windows Terminal Open Settings (Ctrl+,) Click "Open JSON file" Add (or modify) optional parameter "startupActions" with your start configuration (for example as @Donatas Repečka described). Only difference - you don't need to put "wt" on the start. Save file and reopen WT. Don't forget that string should be properly ...


0

Seems like a temporary site glitch. Much better now. For reference, a sample command line to start the session in a COM mode: "C:\Program Files (x86)\teraterm\ttermpro.exe" /C=3 /BAUD=460800 /CDATABIT=8 /CPARITY=none /CSTOPBIT=1 /CFLOWCTRL=none /CDELAYPERCHAR=0 /CDELAYPERLINE=0 Alternatively, an *.ini setup file can be used for setting all the ...


0

Three options are there so you can choose your preferred configuration, as depicted below first, edit the zshrc with your favorite editor; after that, replace the PROMPT_ALTERNATIVE and NEWLINE_BEFORE_PROMPT accordingly. $ nano ~/.zshrc When done refresh the terminal to apply the new changes $ source ~/.zshrc


0

In your server ( or where the shared directory is ), add a Samba user and set a password for it: sudo smbpasswd -a [SharedVolumeName] Then you can use that user ( SharedVolumeName ) and the password you entered to authenticate and access the shared drive.


0

Since Catalina, macOS sandboxes all OROMs & forces them to run at ring 3. Prior to that it would not let them run at all unless the user forced them. From Apple Platform Security - Option ROM security in macOS In macOS 10.15, UEFI firmware was updated to contain a mechanism for sandboxing OROMs and for stripping privileges from them. UEFI firmware ...


2

Another way is to only disable the caching for symmetric encryption/decryption (that don't use public/private keypair). You can do this either with a command line option every time: gpg --no-symkey-cache -c input.txt gpg --no-symkey-cache -d output.gpg Or you can add no-symkey-cache to ~/.gnupg/gpg.conf, then you won't need to add to the command line every ...


0

Is there any way to run a command or root script via termux at boot on Android and bypass security settings for super user access.. If there was some way to access Android keychain and certificates and manipulate them when they run at boot with a script then you could possibly get root access but I am not sure how to code it


0

Determine the process ID (pid) of the process you are curious about (i.e., the cmd.exe process) and typewmic process where (ProcessId=<processID>) get Caption,ProcessId,ParentProcessID This gets the same information (by, basically, the same mechanism) as Richard's answer, but using only cmd (i.e., not requiring PowerShell).


1

While not a direct answer, there is a work-around you can use: the CALL :label and EXIT /B statements. For example: @echo off if exist C:\ CALL :InIF echo just a dummy line for the above demonstration to remain onscreen before the console closes GOTO :EOF :InIF echo press ctrl+C to cancel the following 30s timeout timeout /nobreak 10 echo instead of ...


0

If above answers not fixing the problem For BigSur OS: Systempreference > Sharing > Remote Login (check the box) - this will allow port 22 to connect remote hosts via SSH.


0

Added: export CLICOLOR=1 export TERM=xterm-256color To the following file: ~/.zshrc I saved this and then I ran: source ~/.zshrc The color scheme was then applied. Please not you will need to run the source command for every terminal window that was already open before you made the changes in the .zshrc file.


0

For me the cause of the problem was also a custom .terminfo. I wanted to keep the .terminfo (to get italics in tmux) so I for me the best solution is alias tig='TERM=xterm-256color tig' Using this alias the colors return to tig.


0

It sounds like Windows Terminal isn't being told to switch to the alternate screen buffer when running apps like man, vim, and less. From this Stack Overflow answer: Alternate screen buffer is designed to provide exactly this functionality for full-screen terminal programs. In normal operation, output gets added to the scrollback buffer (and most terminals ...


Top 50 recent answers are included