Can someone guide me what does each column of ls -ali output in linux describe? Answer ls -ali something like this -a, –all do not ignore entries starting with . -i, –inode print the index number of each file inode, authority, num ,user,group, size , date file name you can use “man ls”…
Tag: linux
Bash script to transfer all files from current directory to specific directory based on name
I have these files: 100-1.jpg 100-2.jpg 200-1.jpg 200-2.jpg I want these to be transferred to specific folder based on filename 100/100-1.jpg 100/100-2.jpg 200/200-1.jpg 200/200-2.jpg How do I do this? What I have tried so far how do I know I cut the string before the dash e.g 200-1 to 200 and store in a vari…
How to remove temp file in ansible using copy module
I’m using adhoc command for example After copy in the remote host. I found temp files in the directory ~/.ansible/tmp How to remove this temp directory on remote host? Using another module like “commmand” ? In the reference of copy ansible module i did not found about remove temp file after …
ack outputs nothing using crontab in linux
ack outputs nothing using crontab in linux. In the crontab file (edited with sudo crontab -e): And cat /ext/test110.sh will show After cron, there are 1.t and 2.t in /ext cat 2.t will output /usr/bin/ack; However, nothing in 1.t. If I run ack “localhost” /etc/hosts > /ext/3.t in bash (4.3.30) o…
Know who is the inheritor while debugging core dumps with GDB
My process has crashed, and I have a core dump. I see that the process crashed while running a code similar to that : I have a full call stack in the core dump, but I don’t know who is the inheritor that runs the “func”. Is there a way to figure it out (maybe by some pointer calculation tric…
Access denied for user ‘root’@’localhost’ (using password: NO) – what’s wrong?
(Sorry for my English) This is a log of my console: What should I do? I understand that it appears when I try entering without a password, but I am dont confirmed password, and ‘root’/empty string doesn’t help. Answer When you installed this fresh, you usually execute afterwards. There you a…
Maven release plugin – Non-parseable settings error
I have a big maven project I want to release using the mvn release plugin. I can run the mvn release:prepare locally (on an OS X computer), however when I try the same on my GNU/Linux build agent (Which is a Centos 7.4), I get the following problem: I have tried to find any reference similar to <os.detecte…
Make VS Code editor Ctrl+Tab cycle tabs in the same order as they’re displayed on screen?
When I go thru open tabs in VS Code by Ctrl+Tab keyboard shortcut, the next tab to display is not always the next tab over to the right of currently displayed. (I am taking wrap-around into account; this also happens when the current tab isn’t rightmost) This is a problem for me from an aesthetic/UX poi…
ACPI event not triggering associated action
I’ve been trying for some time now to enable my computer’s Fn+F9/F10 brightness control. Reading this thread, I tried to set up an acpi event/action script to manually change my brightness. The scripts themselves work – I can manually call bl_down.sh and bl_up.sh in the terminal. However, fo…
Node.js is installed but it’s not usable
I’m using Debian 9.1.0 and I have installed Node.js by downloading the LTS version Linux Binaries (x64). From the location (where I installed Node.js), I can use it: But when I run it outside this location, like: I got the error: bash: node: command not found The solution I found on Internet: create a s…