S
S
Sergey Burduzha2018-11-01 15:30:27
linux
Sergey Burduzha, 2018-11-01 15:30:27

How to get file or folder name in terminal?

I want to make things easier for myself.
Instead of copying the name of a file or folder by highlighting the mouse and pressing ctrl+shift+c,
I want to use the command xclip -i
Just how do I get the name of a file or folder?
command ls -lprints a list.
Doesn't anyone use this?
Thanks in advance.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
A
Andrey Burov, 2018-11-01
@serii81

https://stackoverflow.com/questions/5130968/how-ca...

S
Softer, 2018-11-01
@Softer

Look

basename
dirname
pwd

T
Traffic Solder, 2018-11-03
@trafficsolder

Hi, simple commands for daily use in Kali Linux
cd - change directory (open folder)
ls - list show (under the folder OR desktop)
mkdir - Make directory (folder)

chmod 777 filename.sh
chmod +x filename.sh

How to install OR run python files in kali linux if you have a file like: data.py and you wanted to run: python data.py
so
it can be run. Hope you like this simple daily useful commands.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question