[a / b / c / d / e / f / g / gif / h / hr / k / m / o / p / r / s / t / u / v / vg / vm / vmg / vr / vrpg / vst / w / wg] [i / ic] [r9k / s4s / vip] [cm / hm / lgbt / y] [3 / aco / adv / an / bant / biz / cgl / ck / co / diy / fa / fit / gd / hc / his / int / jp / lit / mlp / mu / n / news / out / po / pol / pw / qst / sci / soc / sp / tg / toy / trv / tv / vp / vt / wsg / wsr / x / xs] [Settings] [Search] [Mobile] [Home]
Board
Settings Mobile Home
/g/ - Technology

Name
Options
Comment
Verification
4chan Pass users can bypass this verification. [Learn More] [Login]
File
  • Please read the Rules and FAQ before posting.
  • You may highlight syntax and preserve whitespace by using [code] tags.

08/21/20New boards added: /vrpg/, /vmg/, /vst/ and /vm/
05/04/17New trial board added: /bant/ - International/Random
10/04/16New board for 4chan Pass users: /vip/ - Very Important Posts
[Hide] [Show All]


[Advertise on 4chan]


File: 1767899015787044.jpg (585 KB, 1125x922)
585 KB
585 KB JPG
>mkdir
>have to cd into my madedir
>>
mkcd
>>
>>107820468
>Sudo dnf KYS
>>
>>107820468
>post frog
>be literal fucking retard
please just end yourself already
>>
>make a house (or rather, hire a bunch of Mexicans to make one for me)
>then I have to move into the house
Woah, shit's crazy
>>
>>107820468
>cd
pushd seems better in that situaiton
>>
>>107820468
You don’t HAVE to cd anywhere
>>
cd's nuts
>>
The GNU coreutil developers should add a --change-to-new-directory option to mkdir with no short form.
>>
>>107820550
You can do it yourself. Unless you're a codelet
>>
>>107820468
dumb_frog() {
mkdir $1
cd $1
}
alias mkdir="dumb_frog"
>>
>>107820564
I know C, but as a matter of honor I only write OCaml these days.
>>
>>107820468
yes, mkdir is short for make directory
>>
this is literally why no one uses troonix
>>
>>107820656
Not true.
Straight white men use Fedora + Gnome
Trannies use Arch
3rd browns every other distro
NPC consoomers use Windows >>107820656
>>
>>107820676
>fedora
>white men
ai jeet slop distro with NSA backdoor pre installed. you have a lot to learn.
>>
>>107820686
>NSA backdoor
>Schizo off his meds again
Every
Single
Time
Now tell us about the time the aliens took you shoved things up your ass and how you actually liked it
>>
File: truck driver saaaaar.mp4 (3.42 MB, 1280x720)
3.42 MB
3.42 MB MP4
>>107820700
i noticed you glossed over the jeet slop part.

saar?
>>
>>107820656
windows has the same problem, both CLI and GUI, right click -> New -> New folder
still have to double click to open it
>>
>>107820725
Its fucking idiots like you that ruin this world for the rest of us.
>>
>>107820746
ctrl shift n
>>
>>107820912
the point of the thread isn't the process of making a folder, it is that going into the folder is always an extra step after making it, instead of it automatically opening
>>
mkd() {
mkdir $1
cd $1
ls -lhA
}
>>
>>107820468
What if you need to mk more than one dir, dipshit?
>>
Because chdir is a shell internal command whereas mkdir is a process executed on its own environment.
>>
>>107821271
ctrl + shift + n > name
ctrl + shift + n > name
ctrl + shift + n > name
ctrl + shift + n > name
BULK CREATE FOLDERS.EXE
FULL RENAME FOLDERS.EXE
MICROSOFT CERTIFIED
>>
>>107820489
bash peasants don't have autopushd.
>>107821271
It could just cd using gnu parallel
>>
>>107820468
>mkdir
>it makes a dir
>it doesn't open a browser
>it doesn't call an AI
>it doesn't re-organize your images
>it just makes a dir like you told it to
Zoomies cannot cope with this and go insane "why it doesn't do 50 more things?"
>>
>>107821250
>ls in a newly created dir
retard
>>
>make directory command
>it makes the directory
>wtf why didn't it do <some shit nobody else assumed it would do>
>>
>>107821250
>_ mkd -p newdir
mkdir: missing operand
Try 'mkdir --help' for more information.
>>
what do you mean i have to put gas in the car, shouldn't it just fuel itself when i turn the key.
>>
>>107823313
Linux car
>the fuel pump is pedal powered. it's better like that because it's more efficient and also you get exercise.
Apple car
>yeah bro just turn the key and go, if you have problems go visit the Apple store and we'll fix everything
LinTODDLERS BTFO
>>
>>107820468
Is there a single OS that automatically moves you to a folder you have created?
kys fag
>>
>>107820581
Is it that easy? How do I learn this power
>>
>>107820475
>make mkcd alias
>remeber to use it
>forget that you’re already in the new directory once you use it
>>
>>107820468
he doesn't .bat or .cmd
NGMI
>>
>>107823282
just do
mkdir $@

provlem solved!
>>
File: boomer-pepe.jpg (63 KB, 637x651)
63 KB
63 KB JPG
>>107823766
add ls to the alias
>>
>>107824599
b-but what about the cd then!!!!
easy:
mkd() {
mkdir $@
cd $_
ls -lhA
}
>>
>>107820468
yes
but you can do cd [alt] .
>>
>>107820628
Why isn't it just
> md
?
>>
>>107820468
>mkdir op-is-a-faggot && cd "$_"
>>
>>107820468
mkcd() {
local dir="$1"
if [ -z "$dir" ]; then
printf 'Usage: mkcd <directory>\n' >&2
return 1
fi
mkdir -p -- "$dir" && cd -- "$dir"
}

>>
>>107820550
You literally can't. Do you even know how cwd works? cd is a builtin for a reason.
>>
>>107820581
Unless you're using zsh, you should quote your args, also how do you pass args to mkdir?



[Advertise on 4chan]

Delete Post: [File Only] Style:
[Disable Mobile View / Use Desktop Site]

[Enable Mobile View / Use Mobile Site]

All trademarks and copyrights on this page are owned by their respective parties. Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.